pub struct AsyncRemote { /* private fields */ }Available on crate features
async and link only.Expand description
A AsyncLink for a remote server or AUTD3 Simulator.
Implementations§
Source§impl AsyncRemote
impl AsyncRemote
Sourcepub const fn new(addr: SocketAddr) -> AsyncRemote
pub const fn new(addr: SocketAddr) -> AsyncRemote
Creates a new AsyncRemote.
Trait Implementations§
Source§impl AsyncLink for AsyncRemote
impl AsyncLink for AsyncRemote
Source§async fn alloc_tx_buffer(&mut self) -> Result<Vec<TxMessage>, LinkError>
async fn alloc_tx_buffer(&mut self) -> Result<Vec<TxMessage>, LinkError>
Allocate a sending buffer for the link.
Source§async fn send(&mut self, tx: Vec<TxMessage>) -> Result<(), LinkError>
async fn send(&mut self, tx: Vec<TxMessage>) -> Result<(), LinkError>
Sends a message to the device.
Auto Trait Implementations§
impl !Freeze for AsyncRemote
impl RefUnwindSafe for AsyncRemote
impl Send for AsyncRemote
impl Sync for AsyncRemote
impl Unpin for AsyncRemote
impl UnsafeUnpin for AsyncRemote
impl UnwindSafe for AsyncRemote
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