pub struct InterfaceVersion(/* private fields */);Expand description
Major version of a service interface.
§Compatibility
The InterfaceVersion identifies the format of the SOME/IP message body.
It should be incremented for any of the following reasons:
- incompatible changes to the payload format
- incompatible changes to the service behavior
- required by application design
Implementations§
Source§impl InterfaceVersion
impl InterfaceVersion
Sourcepub const fn new(value: u8) -> Self
pub const fn new(value: u8) -> Self
Creates a new InterfaceVersion with the given value.
§Examples
use rsomeip_proto::InterfaceVersion;
let value = InterfaceVersion::new(1 as u8);
assert_eq!(value.as_u8(), 1 as u8);Trait Implementations§
Source§impl Clone for InterfaceVersion
impl Clone for InterfaceVersion
Source§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 moreSource§impl Debug for InterfaceVersion
impl Debug for InterfaceVersion
Source§impl Default for InterfaceVersion
impl Default for InterfaceVersion
Source§fn default() -> InterfaceVersion
fn default() -> InterfaceVersion
Returns the “default value” for a type. Read more
Source§impl Deserialize for InterfaceVersion
impl Deserialize for InterfaceVersion
Source§type Output = InterfaceVersion
type Output = InterfaceVersion
Type of the data that will be deserialized.
Source§fn deserialize(buffer: &mut impl Buf) -> Result<Self::Output, DeserializeError>
fn deserialize(buffer: &mut impl Buf) -> Result<Self::Output, DeserializeError>
Deserializes an instance of
Deserialize::Output from the buffer. Read moreSource§fn deserialize_len(
length: LengthField,
buffer: &mut impl Buf,
) -> Result<Self::Output, DeserializeError>
fn deserialize_len( length: LengthField, buffer: &mut impl Buf, ) -> Result<Self::Output, DeserializeError>
Deserializes an instance of
Deserialize::Output from the buffer. Read moreSource§impl Display for InterfaceVersion
impl Display for InterfaceVersion
Source§impl From<InterfaceVersion> for u8
impl From<InterfaceVersion> for u8
Source§fn from(value: InterfaceVersion) -> Self
fn from(value: InterfaceVersion) -> Self
Converts to this type from the input type.
Source§impl From<u8> for InterfaceVersion
impl From<u8> for InterfaceVersion
Source§impl Hash for InterfaceVersion
impl Hash for InterfaceVersion
Source§impl Ord for InterfaceVersion
impl Ord for InterfaceVersion
Source§fn cmp(&self, other: &InterfaceVersion) -> Ordering
fn cmp(&self, other: &InterfaceVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InterfaceVersion
impl PartialEq for InterfaceVersion
Source§impl PartialOrd for InterfaceVersion
impl PartialOrd for InterfaceVersion
Source§impl Serialize for InterfaceVersion
impl Serialize for InterfaceVersion
Source§fn serialize(&self, buffer: &mut impl BufMut) -> Result<usize, SerializeError>
fn serialize(&self, buffer: &mut impl BufMut) -> Result<usize, SerializeError>
Serializes the implementing type into the buffer. Read more
Source§fn serialize_len(
&self,
length: LengthField,
buffer: &mut impl BufMut,
) -> Result<usize, SerializeError>
fn serialize_len( &self, length: LengthField, buffer: &mut impl BufMut, ) -> Result<usize, SerializeError>
Serializes the implementing type into the buffer. Read more
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 UnsafeUnpin 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