pub struct CommandHandle {
pub id: Uuid,
/* private fields */
}Expand description
Handle to a running command
Fields§
§id: UuidImplementations§
Source§impl CommandHandle
impl CommandHandle
pub fn new( id: Uuid, cancel_tx: Sender<()>, status_tx: Sender<Sender<CommandResult>>, ) -> Self
pub async fn cancel(&self) -> Result<(), UbiquityError>
pub async fn status(&self) -> Result<CommandResult, UbiquityError>
Trait Implementations§
Source§impl Clone for CommandHandle
impl Clone for CommandHandle
Source§fn clone(&self) -> CommandHandle
fn clone(&self) -> CommandHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandHandle
impl RefUnwindSafe for CommandHandle
impl Send for CommandHandle
impl Sync for CommandHandle
impl Unpin for CommandHandle
impl UnsafeUnpin for CommandHandle
impl UnwindSafe for CommandHandle
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