pub struct Fault<N, F: Fail> {
pub node_id: N,
pub kind: F,
}Expand description
A structure representing the context of a faulty node. This structure
describes which node is faulty (node_id) and which faulty behavior
that the node exhibited (‘kind’).
Fields§
§node_id: NThe faulty node’s ID.
kind: FThe kind of fault the node is blamed for.
Implementations§
Trait Implementations§
Source§impl<N, F> Into<FaultLog<N, F>> for Fault<N, F>where
F: Fail,
Creates a new FaultLog where self is the first element in the log
vector.
impl<N, F> Into<FaultLog<N, F>> for Fault<N, F>where
F: Fail,
Creates a new FaultLog where self is the first element in the log
vector.
impl<N, F: Fail> StructuralPartialEq for Fault<N, F>
Auto Trait Implementations§
impl<N, F> Freeze for Fault<N, F>
impl<N, F> RefUnwindSafe for Fault<N, F>where
N: RefUnwindSafe,
F: RefUnwindSafe,
impl<N, F> Send for Fault<N, F>where
N: Send,
impl<N, F> Sync for Fault<N, F>where
N: Sync,
impl<N, F> Unpin for Fault<N, F>
impl<N, F> UnwindSafe for Fault<N, F>where
N: UnwindSafe,
F: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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