pub enum PluginControlFrame {
Hello {
manifest: PluginManifest,
supervisor_nonce: [u8; 32],
deadline_millis: u64,
},
Ready {
supervisor_nonce: [u8; 32],
process_id: u64,
},
Invoke(PluginRequest),
Complete(PluginResponse),
Heartbeat {
sequence: u64,
monotonic_millis: u64,
},
Cancel {
request_id: u64,
deadline_millis: u64,
},
Shutdown {
reason: String,
deadline_millis: u64,
},
Ack {
request_id: Option<u64>,
lifecycle: PluginLifecycle,
},
}Variants§
Implementations§
Source§impl PluginControlFrame
impl PluginControlFrame
pub fn to_control_bytes(&self) -> Result<Vec<u8>, PluginError>
pub fn to_control_bytes_with_limits( &self, limits: PluginControlLimits, ) -> Result<Vec<u8>, PluginError>
pub fn from_control_bytes( bytes: &[u8], limits: PluginControlLimits, ) -> Result<Self, PluginError>
Trait Implementations§
Source§impl Clone for PluginControlFrame
impl Clone for PluginControlFrame
Source§fn clone(&self) -> PluginControlFrame
fn clone(&self) -> PluginControlFrame
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 PluginControlFrame
impl Debug for PluginControlFrame
Source§impl<'de> Deserialize<'de> for PluginControlFrame
impl<'de> Deserialize<'de> for PluginControlFrame
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
impl Eq for PluginControlFrame
Source§impl PartialEq for PluginControlFrame
impl PartialEq for PluginControlFrame
Source§impl Serialize for PluginControlFrame
impl Serialize for PluginControlFrame
impl StructuralPartialEq for PluginControlFrame
Auto Trait Implementations§
impl Freeze for PluginControlFrame
impl RefUnwindSafe for PluginControlFrame
impl Send for PluginControlFrame
impl Sync for PluginControlFrame
impl Unpin for PluginControlFrame
impl UnsafeUnpin for PluginControlFrame
impl UnwindSafe for PluginControlFrame
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