Enum nmstate::HsrProtocol
source · #[non_exhaustive]pub enum HsrProtocol {
Hsr,
Prp,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for HsrProtocol
impl Clone for HsrProtocol
source§fn clone(&self) -> HsrProtocol
fn clone(&self) -> HsrProtocol
Returns a copy 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 HsrProtocol
impl Debug for HsrProtocol
source§impl Default for HsrProtocol
impl Default for HsrProtocol
source§impl<'de> Deserialize<'de> for HsrProtocol
impl<'de> Deserialize<'de> for HsrProtocol
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
source§impl From<HsrProtocol> for HsrProtocol
impl From<HsrProtocol> for HsrProtocol
source§fn from(v: HsrProtocol) -> Self
fn from(v: HsrProtocol) -> Self
Converts to this type from the input type.
source§impl PartialEq for HsrProtocol
impl PartialEq for HsrProtocol
source§impl Serialize for HsrProtocol
impl Serialize for HsrProtocol
impl Copy for HsrProtocol
impl Eq for HsrProtocol
impl StructuralPartialEq for HsrProtocol
Auto Trait Implementations§
impl Freeze for HsrProtocol
impl RefUnwindSafe for HsrProtocol
impl Send for HsrProtocol
impl Sync for HsrProtocol
impl Unpin for HsrProtocol
impl UnwindSafe for HsrProtocol
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.