pub enum NetworkError {
DnsResolveFailed,
ConnectionTimeout,
ConnectFailed,
DisconnectFailed,
}
Expand description
Errors that occur due to issues involving communication over WiFi network.
Variants§
DnsResolveFailed
Failed to resolve a hostname for the provided IP address.
ConnectionTimeout
Timed out while trying to connect to remote TCP server.
ConnectFailed
Failed to connect to remote TCP server.
DisconnectFailed
Failed to disconnect from remote TCP server.
Trait Implementations§
Source§impl Debug for NetworkError
impl Debug for NetworkError
Source§impl Format for NetworkError
impl Format for NetworkError
Source§impl From<NetworkError> for Error
impl From<NetworkError> for Error
Source§fn from(err: NetworkError) -> Self
fn from(err: NetworkError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NetworkError
impl PartialEq for NetworkError
impl Eq for NetworkError
impl StructuralPartialEq for NetworkError
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