pub enum Refusal {
NotTrusted {
trusted: NodeId,
},
NotAhead {
reached: u64,
},
NotLeader {
trusted: NodeId,
},
}Expand description
Why something was refused or ignored.
Variants§
NotTrusted
The sender is not the process this one currently trusts.
Fields
§
trusted: NodeIdNotAhead
The timestamp offered is not above what this process has already reached.
NotLeader
This process does not trust itself, so acting on the report is not its business.
Fields
§
trusted: NodeIdTrait Implementations§
impl Copy for Refusal
impl Eq for Refusal
impl StructuralPartialEq for Refusal
Auto Trait Implementations§
impl Freeze for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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