Struct trezor_client::client::common::EntropyRequest
source · pub struct EntropyRequest<'a> {
pub client: &'a mut Trezor,
}
Expand description
When resetting the device, it will ask for entropy to aid key generation.
Fields§
§client: &'a mut Trezor
Implementations§
source§impl<'a> EntropyRequest<'a>
impl<'a> EntropyRequest<'a>
sourcepub fn ack_entropy(
self,
entropy: Vec<u8>,
) -> Result<TrezorResponse<'a, (), Success>>
pub fn ack_entropy( self, entropy: Vec<u8>, ) -> Result<TrezorResponse<'a, (), Success>>
Provide exactly 32 bytes or entropy.
Auto Trait Implementations§
impl<'a> Freeze for EntropyRequest<'a>
impl<'a> !RefUnwindSafe for EntropyRequest<'a>
impl<'a> Send for EntropyRequest<'a>
impl<'a> Sync for EntropyRequest<'a>
impl<'a> Unpin for EntropyRequest<'a>
impl<'a> !UnwindSafe for EntropyRequest<'a>
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