Struct trezor_client::client::common::ButtonRequest
source · pub struct ButtonRequest<'a, T, R: TrezorMessage> {
pub message: ButtonRequest,
pub client: &'a mut Trezor,
pub result_handler: Box<ResultHandler<'a, T, R>>,
}
Expand description
A button request message sent by the device.
Fields
message: ButtonRequest
client: &'a mut Trezor
result_handler: Box<ResultHandler<'a, T, R>>
Implementations
sourceimpl<'a, T, R: TrezorMessage> ButtonRequest<'a, T, R>
impl<'a, T, R: TrezorMessage> ButtonRequest<'a, T, R>
sourcepub fn request_type(&self) -> ButtonRequestType
pub fn request_type(&self) -> ButtonRequestType
The type of button request.
sourcepub fn ack(self) -> Result<TrezorResponse<'a, T, R>>
pub fn ack(self) -> Result<TrezorResponse<'a, T, R>>
The metadata sent with the button request. Ack the request and get the next message from the device.
Trait Implementations
sourceimpl<'a, T, R: TrezorMessage> Debug for ButtonRequest<'a, T, R>
impl<'a, T, R: TrezorMessage> Debug for ButtonRequest<'a, T, R>
Auto Trait Implementations
impl<'a, T, R> !RefUnwindSafe for ButtonRequest<'a, T, R>
impl<'a, T, R> !Send for ButtonRequest<'a, T, R>
impl<'a, T, R> !Sync for ButtonRequest<'a, T, R>
impl<'a, T, R> Unpin for ButtonRequest<'a, T, R>
impl<'a, T, R> !UnwindSafe for ButtonRequest<'a, T, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more