#[repr(u8)]pub enum EigenError {
InvalidKeypair = 0,
InvalidAddress = 1,
InvalidPeerId = 2,
InvalidNumNeighbours = 3,
ListenFailed = 4,
DialError = 5,
MaxNeighboursReached = 6,
EpochError = 7,
}Expand description
The crate-wide error variants.
Variants§
InvalidKeypair = 0
Invalid keypair passed into node config.
InvalidAddress = 1
Invalid multiaddress passed into node config.
InvalidPeerId = 2
Invalid peer id passed.
InvalidNumNeighbours = 3
Invalid trust score passed into node config.
ListenFailed = 4
Node failed to start listening on specified address. Usually because the address is already in use.
DialError = 5
Node failed to connect to a neighbor.
MaxNeighboursReached = 6
Max number of neighbors reached for a peer.
EpochError = 7
Failed to calculate current epoch.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EigenError
impl RefUnwindSafe for EigenError
impl Send for EigenError
impl Sync for EigenError
impl Unpin for EigenError
impl UnwindSafe for EigenError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more