enum Command {
Receipt {
body: Vec<u8>,
attachments: String,
reply: Sender<Result<ReceiptOutcome, ActorError>>,
},
Ingest {
msg: Vec<u8>,
reply: Sender<Result<(), ActorError>>,
},
Oobi {
aid: String,
role: Option<String>,
reply: Sender<Result<Vec<u8>, ActorError>>,
},
}Expand description
Work the actor can perform. Each variant carries its own reply channel.
Variants§
Auto Trait Implementations§
impl !RefUnwindSafe for Command
impl !UnwindSafe for Command
impl Freeze for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
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