pub struct TcpTransport {}
Expand description
TCP transport implementation for interacting with Speculos via the TCP APDU socket
Implementations§
Source§impl TcpTransport
impl TcpTransport
Sourcepub fn new() -> Result<Self, Error>
pub fn new() -> Result<Self, Error>
Create a new TcpTransport instance
Trait Implementations§
Source§impl Default for TcpTransport
impl Default for TcpTransport
Source§fn default() -> TcpTransport
fn default() -> TcpTransport
Returns the “default value” for a type. Read more
Source§impl Transport for TcpTransport
impl Transport for TcpTransport
Source§fn list<'life0, 'async_trait>(
&'life0 mut self,
_filters: Self::Filters,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerInfo>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 mut self,
_filters: Self::Filters,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerInfo>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List available devices using the TcpTransport
(This looks for a speculos socket on the default port and returns a device if found, if you want to connect to a specific device use TcpTransport::connect)
Auto Trait Implementations§
impl Freeze for TcpTransport
impl RefUnwindSafe for TcpTransport
impl Send for TcpTransport
impl Sync for TcpTransport
impl Unpin for TcpTransport
impl UnwindSafe for TcpTransport
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