pub enum Error {
Show 13 variants
Protocol(ProtocolError),
Io(Error),
Config(ConfigError),
Frame(FrameError),
Message(MessageError),
Security(SecurityError),
Timeout(TimeoutError),
Close(CloseError),
Connection(String),
Other(String),
CapacityExceeded {
size: usize,
},
InvalidUtf8,
Closed {
code: CloseCode,
reason: String,
},
}Expand description
Comprehensive error type for AeroSocket operations
Variants§
Protocol(ProtocolError)
Protocol errors
Io(Error)
I/O errors
Config(ConfigError)
Configuration errors
Frame(FrameError)
Frame errors
Message(MessageError)
Message errors
Security(SecurityError)
Security errors
Timeout(TimeoutError)
Timeout errors
Close(CloseError)
Close errors
Connection(String)
Connection errors
Other(String)
Generic errors
CapacityExceeded
Buffer capacity exceeded
InvalidUtf8
Invalid UTF-8 in text frame
Closed
Connection closed
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<CloseError> for Error
impl From<CloseError> for Error
Source§fn from(source: CloseError) -> Self
fn from(source: CloseError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for Error
impl From<ConfigError> for Error
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<FrameError> for Error
impl From<FrameError> for Error
Source§fn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
Converts to this type from the input type.
Source§impl From<MessageError> for Error
impl From<MessageError> for Error
Source§fn from(source: MessageError) -> Self
fn from(source: MessageError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolError> for Error
impl From<ProtocolError> for Error
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<SecurityError> for Error
impl From<SecurityError> for Error
Source§fn from(source: SecurityError) -> Self
fn from(source: SecurityError) -> Self
Converts to this type from the input type.
Source§impl From<TimeoutError> for Error
impl From<TimeoutError> for Error
Source§fn from(source: TimeoutError) -> Self
fn from(source: TimeoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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