pub struct State { /* private fields */ }
Expand description
The TCP I/O state, owned by flows and updated by handlers.
This struct represents the I/O state used by I/O handlers to take input and set output. It is usually owned by flows themselves, and serve as communication bridge between flows and I/O handlers.
Implementations§
Source§impl State
State constructors.
impl State
State constructors.
This implementation gathers functions for building new states.
pub fn get_buffer_mut(&mut self) -> &mut [u8] ⓘ
pub fn set_bytes_count(&mut self, bytes_count: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more