pub enum ClockChoice {
System,
Simulated {
address: SocketAddr,
client: usize,
},
}Expand description
Which clock a value of SIMULATED_CLOCK_VARIABLE asks for.
Variants§
System
The real clock.
Simulated
A simulated clock attached to the coordinator at address, as client client.
Fields
§
address: SocketAddrThe coordinator’s address.
Trait Implementations§
Source§impl Clone for ClockChoice
impl Clone for ClockChoice
Source§impl Debug for ClockChoice
impl Debug for ClockChoice
impl Eq for ClockChoice
Source§impl PartialEq for ClockChoice
impl PartialEq for ClockChoice
impl StructuralPartialEq for ClockChoice
Auto Trait Implementations§
impl Freeze for ClockChoice
impl RefUnwindSafe for ClockChoice
impl Send for ClockChoice
impl Sync for ClockChoice
impl Unpin for ClockChoice
impl UnsafeUnpin for ClockChoice
impl UnwindSafe for ClockChoice
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.