Annotate unstable API fns with cfg
This commit is contained in:
@@ -221,12 +221,14 @@ impl<T> FramedRead<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the current max frame size setting
|
/// Returns the current max frame size setting
|
||||||
|
#[cfg(feature = "unstable")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn max_frame_size(&self) -> usize {
|
pub fn max_frame_size(&self) -> usize {
|
||||||
self.inner.max_frame_length()
|
self.inner.max_frame_length()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Updates the max frame size setting.
|
/// Updates the max frame size setting.
|
||||||
|
#[cfg(feature = "unstable")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_max_frame_size(&mut self, val: usize) {
|
pub fn set_max_frame_size(&mut self, val: usize) {
|
||||||
self.inner.set_max_frame_length(val)
|
self.inner.set_max_frame_length(val)
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ impl<T, B> Codec<T, B> {
|
|||||||
/// words, if a frame is currently in process of being decoded with a frame
|
/// words, if a frame is currently in process of being decoded with a frame
|
||||||
/// size greater than `val` but less than the max frame size in effect
|
/// size greater than `val` but less than the max frame size in effect
|
||||||
/// before calling this function, then the frame will be allowed.
|
/// before calling this function, then the frame will be allowed.
|
||||||
|
#[cfg(feature = "unstable")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_max_recv_frame_size(&mut self, val: usize) {
|
pub fn set_max_recv_frame_size(&mut self, val: usize) {
|
||||||
// TODO: should probably make some assertions about max frame size...
|
// TODO: should probably make some assertions about max frame size...
|
||||||
@@ -73,6 +74,7 @@ impl<T, B> Codec<T, B> {
|
|||||||
///
|
///
|
||||||
/// This is the largest size this codec will accept from the wire. Larger
|
/// This is the largest size this codec will accept from the wire. Larger
|
||||||
/// frames will be rejected.
|
/// frames will be rejected.
|
||||||
|
#[cfg(feature = "unstable")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn max_recv_frame_size(&self) -> usize {
|
pub fn max_recv_frame_size(&self) -> usize {
|
||||||
self.inner.max_frame_size()
|
self.inner.max_frame_size()
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ impl GoAway {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "unstable")]
|
||||||
pub fn last_stream_id(&self) -> StreamId {
|
pub fn last_stream_id(&self) -> StreamId {
|
||||||
self.last_stream_id
|
self.last_stream_id
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user