pub enum NetworkError {
Show 22 variants
ProtocolNotAvailable,
InitializationFailed,
DnsResolutionFailed,
ConnectionFailed,
NotConnected,
Timeout,
HttpError(u16),
InvalidUrl,
InvalidResponse,
FileError,
OutOfMemory,
Cancelled,
TlsError,
TlsNotSupported,
DeviceError(String),
BufferTooSmall,
ResponseTooLarge,
TooManyRedirects,
SendFailed,
ReceiveFailed,
UnexpectedEof,
Unknown,
}Variants§
ProtocolNotAvailable
InitializationFailed
DnsResolutionFailed
ConnectionFailed
NotConnected
Timeout
HttpError(u16)
InvalidUrl
InvalidResponse
FileError
OutOfMemory
Cancelled
TlsError
TlsNotSupported
TLS/HTTPS is not supported - use HTTP URLs
DeviceError(String)
Device-level error with description.
BufferTooSmall
Buffer too small for operation.
ResponseTooLarge
Response exceeded size limit.
TooManyRedirects
Too many redirects.
SendFailed
Send operation failed.
ReceiveFailed
Receive operation failed.
UnexpectedEof
Unexpected end of stream.
Unknown
Trait Implementations§
Source§impl Clone for NetworkError
impl Clone for NetworkError
Source§fn clone(&self) -> NetworkError
fn clone(&self) -> NetworkError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkError
impl Debug for NetworkError
Source§impl Display for NetworkError
impl Display for NetworkError
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