Enum nispor::HsrProtocol
source · #[non_exhaustive]pub enum HsrProtocol {
Hsr,
Prp,
Other(u8),
Unknown,
}
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<u8> for HsrProtocol
impl From<u8> for HsrProtocol
source§impl PartialEq for HsrProtocol
impl PartialEq for HsrProtocol
source§fn eq(&self, other: &HsrProtocol) -> bool
fn eq(&self, other: &HsrProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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