Struct trezor_client::client::common::PinMatrixRequest
source · pub struct PinMatrixRequest<'a, T, R: TrezorMessage> {
pub message: PinMatrixRequest,
pub client: &'a mut Trezor,
pub result_handler: Box<ResultHandler<'a, T, R>>,
}
Expand description
A PIN matrix request message sent by the device.
Fields
message: PinMatrixRequest
client: &'a mut Trezor
result_handler: Box<ResultHandler<'a, T, R>>
Implementations
sourceimpl<'a, T, R: TrezorMessage> PinMatrixRequest<'a, T, R>
impl<'a, T, R: TrezorMessage> PinMatrixRequest<'a, T, R>
sourcepub fn request_type(&self) -> PinMatrixRequestType
pub fn request_type(&self) -> PinMatrixRequestType
The type of PIN matrix request.
sourcepub fn ack_pin(self, pin: String) -> Result<TrezorResponse<'a, T, R>>
pub fn ack_pin(self, pin: String) -> Result<TrezorResponse<'a, T, R>>
Ack the request with a PIN and get the next message from the device.
Trait Implementations
sourceimpl<'a, T, R: TrezorMessage> Debug for PinMatrixRequest<'a, T, R>
impl<'a, T, R: TrezorMessage> Debug for PinMatrixRequest<'a, T, R>
Auto Trait Implementations
impl<'a, T, R> !RefUnwindSafe for PinMatrixRequest<'a, T, R>
impl<'a, T, R> !Send for PinMatrixRequest<'a, T, R>
impl<'a, T, R> !Sync for PinMatrixRequest<'a, T, R>
impl<'a, T, R> Unpin for PinMatrixRequest<'a, T, R>
impl<'a, T, R> !UnwindSafe for PinMatrixRequest<'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