pub enum GuardStatus {
New,
Dropped,
Up,
Down,
Bad,
Good,
}Expand description
Status of a guard relay.
§Example
use stem_rs::GuardStatus;
let status = GuardStatus::Up;
println!("Guard status: {}", status); // Prints "UP"Variants§
New
New guard that we weren’t previously using.
Dropped
Removed from use as one of our guards.
Up
Guard is now reachable.
Down
Guard is now unreachable.
Bad
Consensus or relay considers this relay unusable as a guard.
Good
Consensus or relay considers this relay usable as a guard.
Trait Implementations§
Source§impl Clone for GuardStatus
impl Clone for GuardStatus
Source§fn clone(&self) -> GuardStatus
fn clone(&self) -> GuardStatus
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 GuardStatus
impl Debug for GuardStatus
Source§impl Display for GuardStatus
impl Display for GuardStatus
Source§impl Hash for GuardStatus
impl Hash for GuardStatus
Source§impl PartialEq for GuardStatus
impl PartialEq for GuardStatus
impl Copy for GuardStatus
impl Eq for GuardStatus
impl StructuralPartialEq for GuardStatus
Auto Trait Implementations§
impl Freeze for GuardStatus
impl RefUnwindSafe for GuardStatus
impl Send for GuardStatus
impl Sync for GuardStatus
impl Unpin for GuardStatus
impl UnwindSafe for GuardStatus
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