Struct Limit
pub struct Limit<T> { /* private fields */ }
Expand description
A BufMut
adapter which limits the amount of bytes that can be written
to an underlying buffer.
Implementations§
§impl<T> Limit<T>
impl<T> Limit<T>
pub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes this Limit
, returning the underlying value.
pub fn get_ref(&self) -> &T
pub fn get_ref(&self) -> &T
Gets a reference to the underlying BufMut
.
It is inadvisable to directly write to the underlying BufMut
.
pub fn get_mut(&mut self) -> &mut T
pub fn get_mut(&mut self) -> &mut T
Gets a mutable reference to the underlying BufMut
.
It is inadvisable to directly write to the underlying BufMut
.