Struct hid_io_core::mailbox::Message[][src]

pub struct Message {
    pub src: Address,
    pub dst: Address,
    pub data: HidIoPacketBuffer,
}

Container for HidIoPacketBuffer Used to indicate the source and destinations inside of hid-io-core. Also contains a variety of convenience functions using the src and dst information.

Fields

src: Addressdst: Addressdata: HidIoPacketBuffer

Implementations

impl Message[src]

pub fn new(src: Address, dst: Address, data: HidIoPacketBuffer) -> Message[src]

pub fn send_ack(&self, sender: Sender<Message>, data: Vec<u8>)[src]

Acknowledgement of a HidIo packet

pub fn send_nak(&self, sender: Sender<Message>, data: Vec<u8>)[src]

Rejection/Nak of a HidIo packet

Trait Implementations

impl Clone for Message[src]

impl Debug for Message[src]

impl PartialEq<Message> for Message[src]

impl StructuralPartialEq for Message[src]

Auto Trait Implementations

impl RefUnwindSafe for Message

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]