Struct trezor_client::transport::webusb::WebUsbTransport
source · pub struct WebUsbTransport { /* private fields */ }
Expand description
An implementation of the Transport interface for WebUSB devices.
Implementations§
source§impl WebUsbTransport
impl WebUsbTransport
pub fn find_devices(debug: bool) -> Result<Vec<AvailableDevice>, Error>
Trait Implementations§
source§impl Transport for WebUsbTransport
impl Transport for WebUsbTransport
fn session_begin(&mut self) -> Result<(), Error>
fn session_end(&mut self) -> Result<(), Error>
fn write_message(&mut self, message: ProtoMessage) -> Result<(), Error>
fn read_message(&mut self) -> Result<ProtoMessage, Error>
Auto Trait Implementations§
impl RefUnwindSafe for WebUsbTransport
impl Send for WebUsbTransport
impl Sync for WebUsbTransport
impl Unpin for WebUsbTransport
impl UnwindSafe for WebUsbTransport
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