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
sourceimpl Debug for SocketError
impl Debug for SocketError
sourceimpl Display for SocketError
impl Display for SocketError
sourceimpl Error for SocketError
impl Error for SocketError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Error> for SocketError
impl From<Error> for SocketError
sourceimpl From<Error> for SocketError
impl From<Error> for SocketError
sourceimpl From<Error> for SocketError
impl From<Error> for SocketError
sourceimpl From<ParseError> for SocketError
impl From<ParseError> for SocketError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for SocketError
impl Send for SocketError
impl Sync for SocketError
impl Unpin for SocketError
impl !UnwindSafe for SocketError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more