Struct InterfaceVersion
pub struct InterfaceVersion(u8);Available on crate feature
data-support-someip only.Expand description
SOME/IP interface version.
Tuple Fields§
§0: u8Trait Implementations§
§impl Clone for InterfaceVersion
impl Clone for InterfaceVersion
§fn clone(&self) -> InterfaceVersion
fn clone(&self) -> InterfaceVersion
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 more§impl Debug for InterfaceVersion
impl Debug for InterfaceVersion
§impl From<InterfaceVersion> for u8
impl From<InterfaceVersion> for u8
§fn from(value: InterfaceVersion) -> u8
fn from(value: InterfaceVersion) -> u8
Converts to this type from the input type.
§impl From<u8> for InterfaceVersion
impl From<u8> for InterfaceVersion
§fn from(value: u8) -> InterfaceVersion
fn from(value: u8) -> InterfaceVersion
Converts to this type from the input type.
§impl<'a> Parse<'a> for InterfaceVersion
impl<'a> Parse<'a> for InterfaceVersion
§fn parse_partial(
reader: &mut ByteReader<'a>,
) -> Result<InterfaceVersion, ParseError>
fn parse_partial( reader: &mut ByteReader<'a>, ) -> Result<InterfaceVersion, ParseError>
Parses a SOME/IP payload type from a given slice of bytes. Read more
§impl PartialEq for InterfaceVersion
impl PartialEq for InterfaceVersion
§impl<'a> Serialize for InterfaceVersion
impl<'a> Serialize for InterfaceVersion
§fn required_length(&self) -> usize
fn required_length(&self) -> usize
Returns the number of bytes required to store the serialized version of self.
§fn serialize_partial(
&self,
byte_writer: &mut ByteWriter<'_>,
) -> Result<(), SerializeError>
fn serialize_partial( &self, byte_writer: &mut ByteWriter<'_>, ) -> Result<(), SerializeError>
Serializes to a byte writer.
impl Copy for InterfaceVersion
impl Eq for InterfaceVersion
impl StructuralPartialEq for InterfaceVersion
Auto Trait Implementations§
impl Freeze for InterfaceVersion
impl RefUnwindSafe for InterfaceVersion
impl Send for InterfaceVersion
impl Sync for InterfaceVersion
impl Unpin for InterfaceVersion
impl UnwindSafe for InterfaceVersion
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