pub enum Preference {
Preferred,
Supported,
Disabled,
}Expand description
Preference in a capability.
The following rules apply during handshake between nodes:
Preferred+Preferred/Supportedleads to using the capability;Supported+Supportedleads to not using the capability;Disabled+ any leads to not using the capability.
Variants§
Preferred
This is preferred, implies Supported.
Supported
This is just supported.
Disabled
Must not be used.
Trait Implementations§
Source§impl Clone for Preference
impl Clone for Preference
Source§fn clone(&self) -> Preference
fn clone(&self) -> Preference
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 Preference
impl Debug for Preference
Source§impl Default for Preference
impl Default for Preference
Source§fn default() -> Preference
fn default() -> Preference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Preference
impl<'de> Deserialize<'de> for Preference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Preference
Auto Trait Implementations§
impl Freeze for Preference
impl RefUnwindSafe for Preference
impl Send for Preference
impl Sync for Preference
impl Unpin for Preference
impl UnsafeUnpin for Preference
impl UnwindSafe for Preference
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