Struct ntex::io::IoRef [−][src]
pub struct IoRef(_);
Implementations
Get memory pool
Gracefully close connection
Notify dispatcher and initiate io stream shutdown process.
Force close connection
Dispatcher does not wait for uncompleted responses. Io stream get terminated without any graceful period.
Gracefully shutdown io stream
Encode and write item to a buffer and wake up write task
Attempts to decode a frame from the read buffer
Write bytes to a buffer and wake up write task
Get mut access to write buffer
Get mut access to read buffer
pub fn on_disconnect(&self) -> OnDisconnectⓘNotable traits for OnDisconnectimpl Future for OnDisconnect type Output = ();
pub fn on_disconnect(&self) -> OnDisconnectⓘNotable traits for OnDisconnectimpl Future for OnDisconnect type Output = ();
Notable traits for OnDisconnect
impl Future for OnDisconnect type Output = ();
Notify when io stream get disconnected
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for IoRef
impl !UnwindSafe for IoRef
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more