Enum bililive_core::errors::StreamError[][src]

pub enum StreamError<E> {
    Parse(ParseError),
    WebSocket(E),
    IO(Error),
}
Expand description

Errors that may occur when consuming a stream.

E is determined by the underlying websocket implementation.

Variants

Parse(ParseError)

Tuple Fields of Parse

0: ParseError
WebSocket(E)

Tuple Fields of WebSocket

0: E
IO(Error)

Tuple Fields of IO

0: Error

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

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

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

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.

Converts the given value to a String. 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.