Struct ntex::framed::State [−][src]
pub struct State(_);
Implementations
Create State
from Framed
Create State
instance with custom params
Convert State to a Framed instance
pub fn set_buffer_params(
&self,
max_read_buf_size: u16,
max_write_buf_size: u16,
min_buf_size: u16
)
pub fn set_buffer_params(
&self,
max_read_buf_size: u16,
max_write_buf_size: u16,
min_buf_size: u16
)
Set read/write buffer sizes
By default read max buf size is 8kb, write max buf size is 8kb
Set io disconnect timeout in secs
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 = ();
impl Future for OnDisconnect type Output = ();
Notify when socket get disconnected
Check if keep-alive timeout occured
Check is dispatcher marked stopped
Stop io tasks
Wake dispatcher when read or write task is stopped.
Gracefully shutdown read and write io tasks
Take io error if any occured
Reset io stop flags
Reset keep-alive error
Wake dispatcher task
Register dispatcher task
Mark dispatcher as stopped
Gracefully close connection
First stop dispatcher, then dispatcher stops io tasks
Force close connection
Dispatcher does not wait for uncompleted responses, but flushes io buffers.
Read incoming io stream and decode codec item.
Encode item, send to a peer and then flush
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for State
impl !UnwindSafe for State
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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