pub struct CommandSender(/* private fields */);Expand description
The half of a CombatConnection that sends commands.
Implementations§
Source§impl CommandSender
impl CommandSender
Sourcepub async fn send(
&mut self,
envelope: &CommandEnvelope,
) -> Result<(), ClientError>
pub async fn send( &mut self, envelope: &CommandEnvelope, ) -> Result<(), ClientError>
Sends a command; its events come back like everyone else’s.
Auto Trait Implementations§
impl !Freeze for CommandSender
impl !RefUnwindSafe for CommandSender
impl Send for CommandSender
impl Sync for CommandSender
impl Unpin for CommandSender
impl UnsafeUnpin for CommandSender
impl !UnwindSafe for CommandSender
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