StreamError

Type Alias StreamError 

Source
pub type StreamError = AnyError;
Expand description

Error type for WebSocket stream operations.

This is a generic [AnyError] and represents errors that can occur during WebSocket communication. The underlying error type depends on the platform:

  • On non-browser platforms: tokio_websockets::Error
  • On browser WASM: ws_stream_wasm::WsErr

You can use [AnyError::downcast_ref] to downcast to the concrete error. However, the downcast is not covered by any semver guarantees and the underlying error may change.

Aliased Typeยง

pub struct StreamError(/* private fields */);