pub enum ProbeState {
Idle,
Probing {
sent: u8,
next_tick: u64,
},
Announcing {
sent: u8,
next_tick: u64,
},
Claimed,
Conflict,
}Expand description
State of a name-claiming probe sequence
Variants§
Idle
Not yet started
Probing
Sending probe queries (count, next_send_tick)
Announcing
Sending announcements
Claimed
Name successfully claimed
Conflict
Conflict detected, must choose new name
Implementations§
Source§impl ProbeState
impl ProbeState
Sourcepub fn is_claimed(&self) -> bool
pub fn is_claimed(&self) -> bool
Whether the name is fully claimed and usable
Sourcepub fn is_conflict(&self) -> bool
pub fn is_conflict(&self) -> bool
Whether a conflict was detected
Trait Implementations§
Source§impl Clone for ProbeState
impl Clone for ProbeState
Source§fn clone(&self) -> ProbeState
fn clone(&self) -> ProbeState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProbeState
impl Debug for ProbeState
Source§impl PartialEq for ProbeState
impl PartialEq for ProbeState
impl Copy for ProbeState
impl Eq for ProbeState
impl StructuralPartialEq for ProbeState
Auto Trait Implementations§
impl Freeze for ProbeState
impl RefUnwindSafe for ProbeState
impl Send for ProbeState
impl Sync for ProbeState
impl Unpin for ProbeState
impl UnwindSafe for ProbeState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)