pub struct MessageTypeField(/* private fields */);Expand description
Newtype for message type field The field encodes the message type and the TP flag. The TP flag indicates that the message is a SOME/IP TP message.
Implementations§
Source§impl MessageTypeField
impl MessageTypeField
pub const fn new(msg_type: MessageType, tp: bool) -> Self
pub const fn new_sd() -> Self
Sourcepub fn message_type(&self) -> MessageType
pub fn message_type(&self) -> MessageType
Returns the message type of the message
pub const fn is_tp(&self) -> bool
Trait Implementations§
Source§impl Clone for MessageTypeField
impl Clone for MessageTypeField
Source§fn clone(&self) -> MessageTypeField
fn clone(&self) -> MessageTypeField
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 MessageTypeField
impl Debug for MessageTypeField
Source§impl From<MessageTypeField> for u8
impl From<MessageTypeField> for u8
Source§fn from(message_type_field: MessageTypeField) -> u8
fn from(message_type_field: MessageTypeField) -> u8
Converts to this type from the input type.
Source§impl PartialEq for MessageTypeField
impl PartialEq for MessageTypeField
Source§impl TryFrom<u8> for MessageTypeField
impl TryFrom<u8> for MessageTypeField
impl Copy for MessageTypeField
impl Eq for MessageTypeField
impl StructuralPartialEq for MessageTypeField
Auto Trait Implementations§
impl Freeze for MessageTypeField
impl RefUnwindSafe for MessageTypeField
impl Send for MessageTypeField
impl Sync for MessageTypeField
impl Unpin for MessageTypeField
impl UnsafeUnpin for MessageTypeField
impl UnwindSafe for MessageTypeField
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