pub enum CommunicationError {
InvalidResponse {
state: ServerState,
request: Option<Message>,
response: Message,
},
InvalidState {
state: ServerState,
message: Message,
},
UnsupportedOperation(u32),
ProtocolError(Error),
IoError(Error),
}Variants§
Trait Implementations§
Source§impl Debug for CommunicationError
impl Debug for CommunicationError
Source§impl Display for CommunicationError
impl Display for CommunicationError
Source§impl Error for CommunicationError
impl Error for CommunicationError
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<CommunicationError> for Error
impl From<CommunicationError> for Error
Source§fn from(error: CommunicationError) -> Self
fn from(error: CommunicationError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CommunicationError
impl From<Error> for CommunicationError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommunicationError
impl !RefUnwindSafe for CommunicationError
impl Send for CommunicationError
impl Sync for CommunicationError
impl Unpin for CommunicationError
impl !UnwindSafe for CommunicationError
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