#[repr(u8)]pub enum ProtocolVersion {
ReservedVer = 0,
Iso13400_2010 = 1,
Iso13400_2012 = 2,
Iso13400_2019 = 3,
Iso13400_2019Amd1 = 4,
DefaultValue = 255,
}Expand description
Avaiable version of the DoIP protocol as per ISO-13400.
Maps to u8 values for avaiable DoIP protocols which are supported by this
crates and ISO-13400.
Variants§
ReservedVer = 0
Reserved Version
Iso13400_2010 = 1
DoIP Payload Version: ISO-13400 2010 Version
Iso13400_2012 = 2
DoIP Payload Version: ISO-13400 2012 Version
Iso13400_2019 = 3
DoIP Payload Version: ISO-13400 2019 Version
Iso13400_2019Amd1 = 4
DoIP Payload Version: ISO-13400 2019_AMD1 Version
DefaultValue = 255
DoIP Payload Version: Default Version
Trait Implementations§
Source§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
Source§fn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
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 ProtocolVersion
impl Debug for ProtocolVersion
Source§impl From<ProtocolVersion> for u8
impl From<ProtocolVersion> for u8
Source§fn from(value: ProtocolVersion) -> Self
fn from(value: ProtocolVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProtocolVersion
impl PartialEq for ProtocolVersion
Source§impl TryFrom<&u8> for ProtocolVersion
impl TryFrom<&u8> for ProtocolVersion
impl Copy for ProtocolVersion
impl StructuralPartialEq for ProtocolVersion
Auto Trait Implementations§
impl Freeze for ProtocolVersion
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnsafeUnpin for ProtocolVersion
impl UnwindSafe for ProtocolVersion
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