#[repr(u8)]pub enum SourceOrDestField {
Source = 0,
Dest = 1,
}Expand description
Identifies the association of the data contained in the transfer frame.
Variants§
Source = 0
SCID refers to the source of the transfer frame.
Dest = 1
SCID refers to the destination of the transfer frame.
Implementations§
Trait Implementations§
Source§impl Clone for SourceOrDestField
impl Clone for SourceOrDestField
Source§fn clone(&self) -> SourceOrDestField
fn clone(&self) -> SourceOrDestField
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 SourceOrDestField
impl Debug for SourceOrDestField
Source§impl<'de> Deserialize<'de> for SourceOrDestField
impl<'de> Deserialize<'de> for SourceOrDestField
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 Format for SourceOrDestField
impl Format for SourceOrDestField
Source§impl From<SourceOrDestField> for u8
impl From<SourceOrDestField> for u8
Source§fn from(enum_value: SourceOrDestField) -> Self
fn from(enum_value: SourceOrDestField) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SourceOrDestField
impl PartialEq for SourceOrDestField
Source§impl Serialize for SourceOrDestField
impl Serialize for SourceOrDestField
Source§impl TryFrom<u8> for SourceOrDestField
impl TryFrom<u8> for SourceOrDestField
Source§type Error = TryFromPrimitiveError<SourceOrDestField>
type Error = TryFromPrimitiveError<SourceOrDestField>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SourceOrDestField
impl TryFromPrimitive for SourceOrDestField
const NAME: &'static str = "SourceOrDestField"
type Primitive = u8
type Error = TryFromPrimitiveError<SourceOrDestField>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for SourceOrDestField
impl Eq for SourceOrDestField
impl StructuralPartialEq for SourceOrDestField
Auto Trait Implementations§
impl Freeze for SourceOrDestField
impl RefUnwindSafe for SourceOrDestField
impl Send for SourceOrDestField
impl Sync for SourceOrDestField
impl Unpin for SourceOrDestField
impl UnwindSafe for SourceOrDestField
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