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: ChannelThe channel used for this transaction.
command: CommandThe command that is executed in this transaction.
request: TThe request payload.
response: SThe response payload.
Implementations§
Source§impl<T: AsRef<[u8]>, S: AsRef<[u8]>> Transaction<T, S>
impl<T: AsRef<[u8]>, S: AsRef<[u8]>> Transaction<T, S>
Sourcepub fn request_message(&self) -> Message<&[u8]>
pub fn request_message(&self) -> Message<&[u8]>
Returns the request message of this transaction.
Sourcepub fn response_message(&self) -> Message<&[u8]>
pub fn response_message(&self) -> Message<&[u8]>
Returns the response message of this transaction.
Trait Implementations§
Source§impl<T: Clone + AsRef<[u8]>, S: Clone + AsRef<[u8]>> Clone for Transaction<T, S>
impl<T: Clone + AsRef<[u8]>, S: Clone + AsRef<[u8]>> Clone for Transaction<T, S>
Source§fn clone(&self) -> Transaction<T, S>
fn clone(&self) -> Transaction<T, S>
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<T: Ord + AsRef<[u8]>, S: Ord + AsRef<[u8]>> Ord for Transaction<T, S>
impl<T: Ord + AsRef<[u8]>, S: Ord + AsRef<[u8]>> Ord for Transaction<T, S>
Source§fn cmp(&self, other: &Transaction<T, S>) -> Ordering
fn cmp(&self, other: &Transaction<T, S>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + AsRef<[u8]>, S: PartialOrd + AsRef<[u8]>> PartialOrd for Transaction<T, S>
impl<T: PartialOrd + AsRef<[u8]>, S: PartialOrd + AsRef<[u8]>> PartialOrd for Transaction<T, S>
impl<T: Copy + AsRef<[u8]>, S: Copy + AsRef<[u8]>> Copy for Transaction<T, S>
impl<T: Eq + AsRef<[u8]>, S: Eq + AsRef<[u8]>> Eq for Transaction<T, S>
impl<T: AsRef<[u8]>, S: AsRef<[u8]>> StructuralPartialEq for Transaction<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for Transaction<T, S>
impl<T, S> RefUnwindSafe for Transaction<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for Transaction<T, S>
impl<T, S> Sync for Transaction<T, S>
impl<T, S> Unpin for Transaction<T, S>
impl<T, S> UnwindSafe for Transaction<T, S>where
T: UnwindSafe,
S: UnwindSafe,
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