Enum aldrin_broker::EstablishError
source · pub enum EstablishError<T> {
UnexpectedMessageReceived(Message),
IncompatibleVersion(u32),
Shutdown,
Transport(T),
Serialize(SerializeError),
}
Expand description
Error while establishing a new connection.
Variants§
UnexpectedMessageReceived(Message)
An unexpected message was received.
IncompatibleVersion(u32)
The protocol version of the client is incompatible.
The contained version is that of the client. The version of the broker is
crate::core::VERSION
.
Shutdown
The broker shut down.
Transport(T)
The transport encountered an error.
Serialize(SerializeError)
A value failed to serialize.
Trait Implementations§
source§impl<T: Clone> Clone for EstablishError<T>
impl<T: Clone> Clone for EstablishError<T>
source§fn clone(&self) -> EstablishError<T>
fn clone(&self) -> EstablishError<T>
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<T: Debug> Debug for EstablishError<T>
impl<T: Debug> Debug for EstablishError<T>
source§impl<T> Display for EstablishError<T>where
T: Display,
impl<T> Display for EstablishError<T>where
T: Display,
source§impl<T> Error for EstablishError<T>
impl<T> Error for EstablishError<T>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<T> From<SerializeError> for EstablishError<T>
impl<T> From<SerializeError> for EstablishError<T>
source§fn from(source: SerializeError) -> Self
fn from(source: SerializeError) -> Self
Converts to this type from the input type.
source§impl<T: PartialEq> PartialEq for EstablishError<T>
impl<T: PartialEq> PartialEq for EstablishError<T>
source§fn eq(&self, other: &EstablishError<T>) -> bool
fn eq(&self, other: &EstablishError<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for EstablishError<T>
impl<T> StructuralEq for EstablishError<T>
impl<T> StructuralPartialEq for EstablishError<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for EstablishError<T>where
T: RefUnwindSafe,
impl<T> Send for EstablishError<T>where
T: Send,
impl<T> Sync for EstablishError<T>where
T: Sync,
impl<T> Unpin for EstablishError<T>where
T: Unpin,
impl<T> UnwindSafe for EstablishError<T>where
T: UnwindSafe,
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