pub enum StateError {
Show 14 variants
Timeout,
InterfaceError,
SocketError,
DnsError,
ConnectionFailed,
ConnectionRefused,
ConnectionReset,
HttpError,
InvalidResponse,
HttpStatus(u16),
NotStarted,
AlreadyComplete,
BufferTooSmall,
Internal,
}Expand description
Common error type for state machines.
Variants§
Timeout
Operation timed out
InterfaceError
Network interface error
SocketError
Socket error
DnsError
DNS resolution failed
ConnectionFailed
TCP connection failed
ConnectionRefused
TCP connection refused
ConnectionReset
TCP connection reset
HttpError
HTTP protocol error
InvalidResponse
Invalid response
HttpStatus(u16)
HTTP status error (status code)
NotStarted
Not started (step called before start)
AlreadyComplete
Already completed
BufferTooSmall
Buffer too small
Internal
Internal error
Trait Implementations§
Source§impl Clone for StateError
impl Clone for StateError
Source§fn clone(&self) -> StateError
fn clone(&self) -> StateError
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 StateError
impl Debug for StateError
Source§impl Display for StateError
impl Display for StateError
Source§impl From<DhcpError> for StateError
impl From<DhcpError> for StateError
Source§impl From<DnsError> for StateError
impl From<DnsError> for StateError
Source§impl From<DownloadError> for StateError
impl From<DownloadError> for StateError
Source§fn from(e: DownloadError) -> Self
fn from(e: DownloadError) -> Self
Converts to this type from the input type.
Source§impl From<HttpError> for StateError
impl From<HttpError> for StateError
Source§impl From<TcpError> for StateError
impl From<TcpError> for StateError
Source§impl PartialEq for StateError
impl PartialEq for StateError
impl Copy for StateError
impl Eq for StateError
impl StructuralPartialEq for StateError
Auto Trait Implementations§
impl Freeze for StateError
impl RefUnwindSafe for StateError
impl Send for StateError
impl Sync for StateError
impl Unpin for StateError
impl UnwindSafe for StateError
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