Struct ntex::framed::State[][src]

pub struct State(_);

Implementations

Create State instance

Create State from Framed

Create State instance with custom params

Convert State to a Framed instance

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

Notify when socket get disconnected

Check if io error occured in read or write task

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

Get api for read task

Get api for write task

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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