#[non_exhaustive]pub enum AssociationError {
Shutdown,
DuplicateAddress(EndpointAddress),
WrongChannelType {
actual: MasterChannelType,
required: MasterChannelType,
},
}Expand description
Errors that can occur when adding an association
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Shutdown
Master task has shutdown
DuplicateAddress(EndpointAddress)
Specified address is already in use
WrongChannelType
Channel is not the correct type for that operation
Fields
§
actual: MasterChannelTypeActual type of the channel
§
required: MasterChannelTypeChannel type required for the requested operation
Trait Implementations§
Source§impl Clone for AssociationError
impl Clone for AssociationError
Source§fn clone(&self) -> AssociationError
fn clone(&self) -> AssociationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AssociationError
Source§impl Debug for AssociationError
impl Debug for AssociationError
Source§impl Display for AssociationError
impl Display for AssociationError
impl Eq for AssociationError
Source§impl Error for AssociationError
impl Error for AssociationError
1.30.0 · 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<RecvError> for AssociationError
impl From<RecvError> for AssociationError
Source§impl From<Shutdown> for AssociationError
impl From<Shutdown> for AssociationError
Source§impl PartialEq for AssociationError
impl PartialEq for AssociationError
impl StructuralPartialEq for AssociationError
Auto Trait Implementations§
impl Freeze for AssociationError
impl RefUnwindSafe for AssociationError
impl Send for AssociationError
impl Sync for AssociationError
impl Unpin for AssociationError
impl UnsafeUnpin for AssociationError
impl UnwindSafe for AssociationError
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