pub enum WorkerCommand {
Describe {
protocol_version: u16,
},
Health {
protocol_version: u16,
},
Submit {
protocol_version: u16,
profile: AgentProfile,
request: Box<RunRequest>,
},
Control {
protocol_version: u16,
control: RuntimeControl,
},
ResumeEvents {
protocol_version: u16,
run_id: RunId,
after_sequence: Option<u64>,
},
}Expand description
Transport-neutral command vocabulary for a remote Worker endpoint.
Variants§
Implementations§
Source§impl WorkerCommand
impl WorkerCommand
pub fn protocol_version(&self) -> u16
pub fn validate_protocol(&self) -> Result<(), RuntimeError>
Trait Implementations§
Source§impl Clone for WorkerCommand
impl Clone for WorkerCommand
Source§fn clone(&self) -> WorkerCommand
fn clone(&self) -> WorkerCommand
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 moreSource§impl Debug for WorkerCommand
impl Debug for WorkerCommand
Source§impl<'de> Deserialize<'de> for WorkerCommand
impl<'de> Deserialize<'de> for WorkerCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkerCommand
impl PartialEq for WorkerCommand
Source§impl Serialize for WorkerCommand
impl Serialize for WorkerCommand
impl StructuralPartialEq for WorkerCommand
Auto Trait Implementations§
impl Freeze for WorkerCommand
impl RefUnwindSafe for WorkerCommand
impl Send for WorkerCommand
impl Sync for WorkerCommand
impl Unpin for WorkerCommand
impl UnsafeUnpin for WorkerCommand
impl UnwindSafe for WorkerCommand
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