#[repr(C)]pub struct Message { /* private fields */ }Expand description
Represents the generic message format for JCM host-device communication.
Message format:
| Field name | ID | Length | Data |
|---|---|---|---|
| Size (byte) | 1 | 2 | Variable |
Implementations§
source§impl Message
impl Message
sourcepub const fn data(&self) -> &MessageData
pub const fn data(&self) -> &MessageData
Gets a reference to the MessageData of the Message.
sourcepub fn set_data(&mut self, data: MessageData)
pub fn set_data(&mut self, data: MessageData)
Sets the MessageData of the Message.
sourcepub fn with_data(self, data: MessageData) -> Self
pub fn with_data(self, data: MessageData) -> Self
Builder function that sets the MessageData of the Message.
Trait Implementations§
source§impl From<&EscrowEvent> for Message
impl From<&EscrowEvent> for Message
source§fn from(val: &EscrowEvent) -> Self
fn from(val: &EscrowEvent) -> Self
Converts to this type from the input type.
source§impl From<&IdleRequest> for Message
impl From<&IdleRequest> for Message
source§fn from(val: &IdleRequest) -> Self
fn from(val: &IdleRequest) -> Self
Converts to this type from the input type.
source§impl From<&InhibitEvent> for Message
impl From<&InhibitEvent> for Message
source§fn from(val: &InhibitEvent) -> Self
fn from(val: &InhibitEvent) -> Self
Converts to this type from the input type.
source§impl From<&InhibitRequest> for Message
impl From<&InhibitRequest> for Message
source§fn from(val: &InhibitRequest) -> Self
fn from(val: &InhibitRequest) -> Self
Converts to this type from the input type.
source§impl From<&MessageData> for Message
impl From<&MessageData> for Message
source§fn from(val: &MessageData) -> Self
fn from(val: &MessageData) -> Self
Converts to this type from the input type.
source§impl From<&RejectRequest> for Message
impl From<&RejectRequest> for Message
source§fn from(val: &RejectRequest) -> Self
fn from(val: &RejectRequest) -> Self
Converts to this type from the input type.
source§impl From<&RejectedEvent> for Message
impl From<&RejectedEvent> for Message
source§fn from(val: &RejectedEvent) -> Self
fn from(val: &RejectedEvent) -> Self
Converts to this type from the input type.
source§impl From<&ResetRequest> for Message
impl From<&ResetRequest> for Message
source§fn from(val: &ResetRequest) -> Self
fn from(val: &ResetRequest) -> Self
Converts to this type from the input type.
source§impl From<&StackRequest> for Message
impl From<&StackRequest> for Message
source§fn from(val: &StackRequest) -> Self
fn from(val: &StackRequest) -> Self
Converts to this type from the input type.
source§impl From<&StatusRequest> for Message
impl From<&StatusRequest> for Message
source§fn from(val: &StatusRequest) -> Self
fn from(val: &StatusRequest) -> Self
Converts to this type from the input type.
source§impl From<&UidRequest> for Message
impl From<&UidRequest> for Message
source§fn from(val: &UidRequest) -> Self
fn from(val: &UidRequest) -> Self
Converts to this type from the input type.
source§impl From<EscrowEvent> for Message
impl From<EscrowEvent> for Message
source§fn from(val: EscrowEvent) -> Self
fn from(val: EscrowEvent) -> Self
Converts to this type from the input type.
source§impl From<IdleRequest> for Message
impl From<IdleRequest> for Message
source§fn from(val: IdleRequest) -> Self
fn from(val: IdleRequest) -> Self
Converts to this type from the input type.
source§impl From<InhibitEvent> for Message
impl From<InhibitEvent> for Message
source§fn from(val: InhibitEvent) -> Self
fn from(val: InhibitEvent) -> Self
Converts to this type from the input type.
source§impl From<InhibitRequest> for Message
impl From<InhibitRequest> for Message
source§fn from(val: InhibitRequest) -> Self
fn from(val: InhibitRequest) -> Self
Converts to this type from the input type.
source§impl From<MessageData> for Message
impl From<MessageData> for Message
source§fn from(val: MessageData) -> Self
fn from(val: MessageData) -> Self
Converts to this type from the input type.
source§impl From<RejectRequest> for Message
impl From<RejectRequest> for Message
source§fn from(val: RejectRequest) -> Self
fn from(val: RejectRequest) -> Self
Converts to this type from the input type.
source§impl From<RejectedEvent> for Message
impl From<RejectedEvent> for Message
source§fn from(val: RejectedEvent) -> Self
fn from(val: RejectedEvent) -> Self
Converts to this type from the input type.
source§impl From<ResetRequest> for Message
impl From<ResetRequest> for Message
source§fn from(val: ResetRequest) -> Self
fn from(val: ResetRequest) -> Self
Converts to this type from the input type.
source§impl From<StackRequest> for Message
impl From<StackRequest> for Message
source§fn from(val: StackRequest) -> Self
fn from(val: StackRequest) -> Self
Converts to this type from the input type.
source§impl From<StatusRequest> for Message
impl From<StatusRequest> for Message
source§fn from(val: StatusRequest) -> Self
fn from(val: StatusRequest) -> Self
Converts to this type from the input type.
source§impl From<UidRequest> for Message
impl From<UidRequest> for Message
source§fn from(val: UidRequest) -> Self
fn from(val: UidRequest) -> Self
Converts to this type from the input type.
source§impl PartialEq for Message
impl PartialEq for Message
source§impl TryFrom<&Message> for EscrowEvent
impl TryFrom<&Message> for EscrowEvent
source§impl TryFrom<&Message> for IdleRequest
impl TryFrom<&Message> for IdleRequest
source§impl TryFrom<&Message> for InhibitEvent
impl TryFrom<&Message> for InhibitEvent
source§impl TryFrom<&Message> for InhibitRequest
impl TryFrom<&Message> for InhibitRequest
source§impl TryFrom<&Message> for RejectRequest
impl TryFrom<&Message> for RejectRequest
source§impl TryFrom<&Message> for RejectedEvent
impl TryFrom<&Message> for RejectedEvent
source§impl TryFrom<&Message> for ResetRequest
impl TryFrom<&Message> for ResetRequest
source§impl TryFrom<&Message> for StackRequest
impl TryFrom<&Message> for StackRequest
source§impl TryFrom<&Message> for StatusRequest
impl TryFrom<&Message> for StatusRequest
source§impl TryFrom<&Message> for StatusResponse
impl TryFrom<&Message> for StatusResponse
source§impl TryFrom<&Message> for UidRequest
impl TryFrom<&Message> for UidRequest
source§impl TryFrom<Message> for EscrowEvent
impl TryFrom<Message> for EscrowEvent
source§impl TryFrom<Message> for IdleRequest
impl TryFrom<Message> for IdleRequest
source§impl TryFrom<Message> for InhibitEvent
impl TryFrom<Message> for InhibitEvent
source§impl TryFrom<Message> for InhibitRequest
impl TryFrom<Message> for InhibitRequest
source§impl TryFrom<Message> for RejectRequest
impl TryFrom<Message> for RejectRequest
source§impl TryFrom<Message> for RejectedEvent
impl TryFrom<Message> for RejectedEvent
source§impl TryFrom<Message> for ResetRequest
impl TryFrom<Message> for ResetRequest
source§impl TryFrom<Message> for StackRequest
impl TryFrom<Message> for StackRequest
source§impl TryFrom<Message> for StatusRequest
impl TryFrom<Message> for StatusRequest
source§impl TryFrom<Message> for StatusResponse
impl TryFrom<Message> for StatusResponse
source§impl TryFrom<Message> for UidRequest
impl TryFrom<Message> for UidRequest
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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