pub struct MessageId { /* private fields */ }
Expand description
SOME/IP message ID.
Implementations§
Source§impl MessageId
impl MessageId
Sourcepub fn service_id(&self) -> ServiceId
pub fn service_id(&self) -> ServiceId
Returns the ServiceId
.
Sourcepub fn set_service_id(&mut self, service_id: ServiceId)
pub fn set_service_id(&mut self, service_id: ServiceId)
Sets the ServiceId
.
Sourcepub fn set_method_id(&mut self, method_id: MethodId)
pub fn set_method_id(&mut self, method_id: MethodId)
Sets the MethodId
.
Trait Implementations§
Source§impl<'a> Parse<'a> for MessageId
impl<'a> Parse<'a> for MessageId
Source§fn parse_partial(reader: &mut ByteReader<'a>) -> Result<MessageId, ParseError>
fn parse_partial(reader: &mut ByteReader<'a>) -> Result<MessageId, ParseError>
Parses a SOME/IP payload type from a given slice of bytes. Read more
Source§impl Serialize for MessageId
impl Serialize for MessageId
Source§fn required_length(&self) -> usize
fn required_length(&self) -> usize
Returns the number of bytes required to store the serialized version of self.
Source§fn serialize_partial(
&self,
writer: &mut ByteWriter<'_>,
) -> Result<(), SerializeError>
fn serialize_partial( &self, writer: &mut ByteWriter<'_>, ) -> Result<(), SerializeError>
Serializes to a byte writer.
impl Copy for MessageId
impl Eq for MessageId
impl StructuralPartialEq for MessageId
Auto Trait Implementations§
impl Freeze for MessageId
impl RefUnwindSafe for MessageId
impl Send for MessageId
impl Sync for MessageId
impl Unpin for MessageId
impl UnwindSafe for MessageId
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