pub struct AbstractStreamManager<S> { /* private fields */ }
Expand description

Manages all active Streams inside a connection. AbstractStreamManager is paramterized over the Stream type.

Implementations

Creates a new StreamManager using the provided configuration parameters

The number of bytes of forward progress the peer has made on incoming streams

The number of bytes of forward progress the local endpoint has made on outgoing streams

Accepts the next incoming stream of a given type

Opens the next outgoing stream of a certain type

This method gets called when a packet delivery got acknowledged

This method gets called when a packet loss is reported

This method gets called when the RTT estimate is updated for the active path

Called when the connection timer expires

Closes the AbstractStreamManager and resets all streams with the given error. The current implementation will still allow to forward frames to the contained Streams as well as to query them for data. However new Streams can not be created.

If the StreamManager is closed, this returns the error which which was used to close it.

Closes the AbstractStreamManager, flushes all send streams and resets all receive streams.

This is used for when the application drops the connection but still has pending data to transmit.

Queries the component for any outgoing frames that need to get sent

This is called when a STREAM_DATA frame had been received for a stream

This is called when a DATA_BLOCKED frame had been received

This is called when a STREAM_DATA_BLOCKED frame had been received for a stream

This is called when a RESET_STREAM frame had been received for a stream

This is called when a MAX_STREAM_DATA frame had been received for a stream

This is called when a STOP_SENDING frame had been received for a stream

This is called when a MAX_DATA frame had been received

This is called when a STREAMS_BLOCKED frame had been received

This is called when a MAX_STREAMS frame had been received

Trait Implementations

Formats the value using the given formatter. Read more

Notifies the query of any timers owned by the provider Read more

Returns the next Timestamp at which the earliest timer is armed in the provider

Returns true if there are any timers armed

Counts the number of armed timers in the provider

Iterates over each timer in the provider and calls the provided function

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.