Struct bililive_core::retry::WsStream[][src]

pub struct WsStream<T: WsStreamTrait<E>, E>(_);
Expand description

Wrapper for types implementing WsStreamTrait.

This type is used to avoid the orphan rule. Exposed for stream type construction.

Implementations

Connect to bilibili websocket server.

Errors

Returns an error when websocket connection fails.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The creation function is used by ReconnectStream in order to establish both the initial IO connection in addition to performing reconnects. Read more

When sink send experience an Error during operation, it does not necessarily mean it is a disconnect/termination (ex: WouldBlock). You may specify which errors are considered “disconnects” by this method. Read more

It’s common practice for [Stream] implementations that return an Err when there’s an error. You may match the result to tell them apart from normal response. By default, no response is considered a “disconnect”. Read more

This is returned when retry quota exhausted.

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

Performs the conversion.

Performs the conversion.

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.