Struct MessageId
pub struct MessageId {
service_id: ServiceId,
method_id: MethodId,
}Available on crate feature
data-support-someip only.Expand description
SOME/IP message ID.
Fields§
§service_id: ServiceId§method_id: MethodIdImplementations§
§impl MessageId
impl MessageId
pub fn service_id(&self) -> ServiceId
pub fn service_id(&self) -> ServiceId
Returns the ServiceId.
pub fn set_service_id(&mut self, service_id: ServiceId)
pub fn set_service_id(&mut self, service_id: ServiceId)
Sets the ServiceId.
pub fn set_method_id(&mut self, method_id: MethodId)
pub fn set_method_id(&mut self, method_id: MethodId)
Sets the MethodId.
Trait Implementations§
§impl<'a> Parse<'a> for MessageId
impl<'a> Parse<'a> for MessageId
§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
§impl Serialize for MessageId
impl Serialize for MessageId
§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,
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