pub enum DispatchCommand {
Action {
name: String,
args: Vec<u8>,
conn: ConnHandle,
reply: Sender<Result<Vec<u8>>>,
},
QueueSend {
name: String,
body: Vec<u8>,
conn: ConnHandle,
request: Request,
wait: bool,
timeout_ms: Option<u64>,
reply: Sender<Result<QueueSendResult>>,
},
Http {
request: Request,
reply: Sender<HttpDispatchResult>,
},
OpenWebSocket {
conn: ConnHandle,
ws: WebSocket,
request: Option<Request>,
reply: Sender<Result<()>>,
},
WorkflowHistory {
reply: Sender<Result<Option<Vec<u8>>>>,
},
WorkflowReplay {
entry_id: Option<String>,
reply: Sender<Result<Option<Vec<u8>>>>,
},
}Variants§
Action
QueueSend
Http
OpenWebSocket
WorkflowHistory
WorkflowReplay
Auto Trait Implementations§
impl !Freeze for DispatchCommand
impl !RefUnwindSafe for DispatchCommand
impl !UnwindSafe for DispatchCommand
impl Send for DispatchCommand
impl Sync for DispatchCommand
impl Unpin for DispatchCommand
impl UnsafeUnpin for DispatchCommand
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