Struct trezor_client::client::common::PassphraseRequest
source · pub struct PassphraseRequest<'a, T, R: TrezorMessage> {
pub message: PassphraseRequest,
pub client: &'a mut Trezor,
pub result_handler: Box<ResultHandler<'a, T, R>>,
}
Expand description
A passphrase request message sent by the device.
Fields
message: PassphraseRequest
client: &'a mut Trezor
result_handler: Box<ResultHandler<'a, T, R>>
Implementations
sourceimpl<'a, T, R: TrezorMessage> PassphraseRequest<'a, T, R>
impl<'a, T, R: TrezorMessage> PassphraseRequest<'a, T, R>
sourcepub fn on_device(&self) -> bool
pub fn on_device(&self) -> bool
Check whether the use is supposed to enter the passphrase on the device or not.
sourcepub fn ack_passphrase(
self,
passphrase: String
) -> Result<TrezorResponse<'a, T, R>>
pub fn ack_passphrase(
self,
passphrase: String
) -> Result<TrezorResponse<'a, T, R>>
Ack the request with a passphrase and get the next message from the device.
sourcepub fn ack(self, on_device: bool) -> Result<TrezorResponse<'a, T, R>>
pub fn ack(self, on_device: bool) -> Result<TrezorResponse<'a, T, R>>
Ack the request without a passphrase to let the user enter it on the device and get the next message from the device.
Trait Implementations
sourceimpl<'a, T, R: TrezorMessage> Debug for PassphraseRequest<'a, T, R>
impl<'a, T, R: TrezorMessage> Debug for PassphraseRequest<'a, T, R>
Auto Trait Implementations
impl<'a, T, R> !RefUnwindSafe for PassphraseRequest<'a, T, R>
impl<'a, T, R> !Send for PassphraseRequest<'a, T, R>
impl<'a, T, R> !Sync for PassphraseRequest<'a, T, R>
impl<'a, T, R> Unpin for PassphraseRequest<'a, T, R>
impl<'a, T, R> !UnwindSafe for PassphraseRequest<'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