pub struct CommandTx(/* private fields */);Implementations§
Source§impl CommandTx
impl CommandTx
Sourcepub fn send(&self, command: Command) -> impl Future<Output = Result<()>> + use<>
pub fn send(&self, command: Command) -> impl Future<Output = Result<()>> + use<>
Send a protocol command
Sourcepub fn open(&self, key: Key) -> impl Future<Output = Result<()>> + use<>
pub fn open(&self, key: Key) -> impl Future<Output = Result<()>> + use<>
Open a protocol channel.
The channel will be emitted on the main protocol.
Sourcepub async fn close(&self, discovery_key: DiscoveryKey) -> Result<()>
pub async fn close(&self, discovery_key: DiscoveryKey) -> Result<()>
Close a protocol channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandTx
impl RefUnwindSafe for CommandTx
impl Send for CommandTx
impl Sync for CommandTx
impl Unpin for CommandTx
impl UnsafeUnpin for CommandTx
impl UnwindSafe for CommandTx
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