pub struct AutonomousWireHandle { /* private fields */ }Expand description
A handle representing the reader/writer threads started by Wire::start.
Implementations§
Source§impl AutonomousWireHandle
impl AutonomousWireHandle
Sourcepub async fn wait(self)
pub async fn wait(self)
Waits for both threads to be done, which will occur once the wire is expressly terminated. Generally, this is not needed when communication patterns are predictable, although in host-module scenarios, the module should generally call this to wait until the host expressly terminates it.
Auto Trait Implementations§
impl Freeze for AutonomousWireHandle
impl RefUnwindSafe for AutonomousWireHandle
impl Send for AutonomousWireHandle
impl Sync for AutonomousWireHandle
impl Unpin for AutonomousWireHandle
impl UnwindSafe for AutonomousWireHandle
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