pub enum NetworkDriverBuilderError {
UnsafeBlockSignerNotSet,
ChainIdNotSet,
GossipAddrNotSet,
BehaviourError(BehaviourError),
ConfigBuilderError,
TcpError,
WithBehaviourError,
DiscoveryBuilderError(DiscoveryBuilderError),
}Expand description
An error from the NetworkDriverBuilder.
Variants§
UnsafeBlockSignerNotSet
The unsafe block signer is not set.
ChainIdNotSet
The chain ID is not set.
GossipAddrNotSet
The gossip address is not set.
BehaviourError(BehaviourError)
A behaviour error.
ConfigBuilderError
A config builder error.
TcpError
A TCP error.
WithBehaviourError
An error when setting the behaviour on the swarm builder.
DiscoveryBuilderError(DiscoveryBuilderError)
A discovery builder error.
Trait Implementations§
Source§impl Clone for NetworkDriverBuilderError
impl Clone for NetworkDriverBuilderError
Source§fn clone(&self) -> NetworkDriverBuilderError
fn clone(&self) -> NetworkDriverBuilderError
Returns a duplicate 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 Debug for NetworkDriverBuilderError
impl Debug for NetworkDriverBuilderError
Source§impl Display for NetworkDriverBuilderError
impl Display for NetworkDriverBuilderError
Source§impl Error for NetworkDriverBuilderError
impl Error for NetworkDriverBuilderError
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<BehaviourError> for NetworkDriverBuilderError
impl From<BehaviourError> for NetworkDriverBuilderError
Source§fn from(source: BehaviourError) -> Self
fn from(source: BehaviourError) -> Self
Converts to this type from the input type.
Source§impl From<DiscoveryBuilderError> for NetworkDriverBuilderError
impl From<DiscoveryBuilderError> for NetworkDriverBuilderError
Source§fn from(source: DiscoveryBuilderError) -> Self
fn from(source: DiscoveryBuilderError) -> Self
Converts to this type from the input type.
impl Eq for NetworkDriverBuilderError
impl StructuralPartialEq for NetworkDriverBuilderError
Auto Trait Implementations§
impl Freeze for NetworkDriverBuilderError
impl RefUnwindSafe for NetworkDriverBuilderError
impl Send for NetworkDriverBuilderError
impl Sync for NetworkDriverBuilderError
impl Unpin for NetworkDriverBuilderError
impl UnwindSafe for NetworkDriverBuilderError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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