pub enum AddPeerError {
Capacity,
InvalidPublicKey,
}Expand description
Error returned when adding a peer to the MAC peer registry.
Variants§
Capacity
The peer-registry table is full.
InvalidPublicKey
The public-key bytes do not decode to a valid Ed25519 point on the curve.
Trait Implementations§
Source§impl Clone for AddPeerError
impl Clone for AddPeerError
Source§fn clone(&self) -> AddPeerError
fn clone(&self) -> AddPeerError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddPeerError
impl Debug for AddPeerError
Source§impl From<CapacityError> for AddPeerError
impl From<CapacityError> for AddPeerError
Source§fn from(_: CapacityError) -> Self
fn from(_: CapacityError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddPeerError
impl PartialEq for AddPeerError
impl Copy for AddPeerError
impl Eq for AddPeerError
impl StructuralPartialEq for AddPeerError
Auto Trait Implementations§
impl Freeze for AddPeerError
impl RefUnwindSafe for AddPeerError
impl Send for AddPeerError
impl Sync for AddPeerError
impl Unpin for AddPeerError
impl UnwindSafe for AddPeerError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)