Enum steam_vent::NetworkError
source · pub enum NetworkError {
IO(Error),
Ws(Error),
InvalidHeader,
InvalidMessageKind(i32),
CryptoHandshakeFailed,
DifferentMessage(EMsg, EMsg),
DifferentServiceMethod(&'static str, String),
MalformedBody(MalformedBody),
CryptoError(CryptError),
EOF,
Timeout,
ApiError(EResult),
}Variants§
IO(Error)
Ws(Error)
InvalidHeader
InvalidMessageKind(i32)
CryptoHandshakeFailed
DifferentMessage(EMsg, EMsg)
DifferentServiceMethod(&'static str, String)
MalformedBody(MalformedBody)
CryptoError(CryptError)
EOF
Timeout
ApiError(EResult)
Trait Implementations§
source§impl Debug for NetworkError
impl Debug for NetworkError
source§impl Display for NetworkError
impl Display for NetworkError
source§impl Error for NetworkError
impl Error for NetworkError
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<CryptError> for NetworkError
impl From<CryptError> for NetworkError
source§fn from(source: CryptError) -> Self
fn from(source: CryptError) -> Self
Converts to this type from the input type.
source§impl From<EResult> for NetworkError
impl From<EResult> for NetworkError
source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
source§impl From<NetworkError> for ConnectionError
impl From<NetworkError> for ConnectionError
source§fn from(source: NetworkError) -> Self
fn from(source: NetworkError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for NetworkError
impl !RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl !UnwindSafe for NetworkError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more