pub enum Consistency {
LocalOnly,
LocalFirst,
RemoteOnly,
}Expand description
Where a realize request may be answered from.
Variants§
LocalOnly
Answer only from the local node.
LocalFirst
Prefer the local node, falling back to remote (the default).
RemoteOnly
Answer only from a remote node.
Implementations§
Trait Implementations§
Source§impl Clone for Consistency
impl Clone for Consistency
Source§fn clone(&self) -> Consistency
fn clone(&self) -> Consistency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Consistency
Source§impl Debug for Consistency
impl Debug for Consistency
Source§impl Default for Consistency
impl Default for Consistency
Source§fn default() -> Consistency
fn default() -> Consistency
Returns the “default value” for a type. Read more
impl Eq for Consistency
Source§impl PartialEq for Consistency
impl PartialEq for Consistency
Source§fn eq(&self, other: &Consistency) -> bool
fn eq(&self, other: &Consistency) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Consistency
Auto Trait Implementations§
impl Freeze for Consistency
impl RefUnwindSafe for Consistency
impl Send for Consistency
impl Sync for Consistency
impl Unpin for Consistency
impl UnsafeUnpin for Consistency
impl UnwindSafe for Consistency
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