Enum barter_integration::error::SocketError
source · pub enum SocketError {
Show 15 variants
Sink,
Deserialise {
error: Error,
payload: String,
},
DeserialiseBinary {
error: Error,
payload: Vec<u8>,
},
Serialise(Error),
QueryParams(Error),
UrlParse(ParseError),
Subscribe(String),
Terminated(String),
Unsupported {
entity: &'static str,
item: String,
},
WebSocket(Error),
Http(Error),
HttpTimeout(Error),
HttpResponse(StatusCode, String),
Unidentifiable(SubscriptionId),
Exchange(String),
}Expand description
All socket IO related errors generated in barter-integration.
Variants§
Sink
Deserialise
DeserialiseBinary
Serialise(Error)
QueryParams(Error)
UrlParse(ParseError)
Subscribe(String)
Terminated(String)
Unsupported
WebSocket(Error)
Http(Error)
HttpTimeout(Error)
HttpResponse(StatusCode, String)
REST http response error
Unidentifiable(SubscriptionId)
Exchange(String)
Trait Implementations§
source§impl Debug for SocketError
impl Debug for SocketError
source§impl Display for SocketError
impl Display for SocketError
source§impl Error for SocketError
impl Error for SocketError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for SocketError
impl From<Error> for SocketError
source§impl From<Error> for SocketError
impl From<Error> for SocketError
source§impl From<Error> for SocketError
impl From<Error> for SocketError
source§impl From<ParseError> for SocketError
impl From<ParseError> for SocketError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.