Struct ctaphid_types::Transaction [−][src]
pub struct Transaction<T: AsRef<[u8]>, S: AsRef<[u8]>> {
pub channel: Channel,
pub command: Command,
pub request: T,
pub response: S,
}
Expand description
A CTAPHID transaction.
Fields
channel: Channel
The channel used for this transaction.
command: Command
The command that is executed in this transaction.
request: T
The request payload.
response: S
The response payload.
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T: PartialOrd + AsRef<[u8]>, S: PartialOrd + AsRef<[u8]>> PartialOrd<Transaction<T, S>> for Transaction<T, S>
impl<T: PartialOrd + AsRef<[u8]>, S: PartialOrd + AsRef<[u8]>> PartialOrd<Transaction<T, S>> for Transaction<T, S>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T, S> RefUnwindSafe for Transaction<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for Transaction<T, S> where
S: Send,
T: Send,
impl<T, S> Sync for Transaction<T, S> where
S: Sync,
T: Sync,
impl<T, S> Unpin for Transaction<T, S> where
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for Transaction<T, S> where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more