pub enum ControlMessageType {
Hello,
Welcome,
Capabilities,
CapabilitiesResult,
MemoryState,
MemoryTarget,
CpuState,
CpuTarget,
SecretsUpdate,
SecretsResult,
Error,
}Expand description
Known control wire names. The strum spelling is the authoritative mapping.
Variants§
Hello
Initial generation offer.
Welcome
Selected generation and limits.
Capabilities
Facility query.
CapabilitiesResult
Facility response.
MemoryState
Memory query or terminal memory observation.
MemoryTarget
Set a memory target.
CpuState
CPU query or terminal CPU observation.
CpuTarget
Set a CPU target.
SecretsUpdate
Ordered host secret modifications.
SecretsResult
Complete or partial secret progress.
Error
Recoverable operation or handshake error.
Implementations§
Source§impl ControlMessageType
impl ControlMessageType
Sourcepub fn from_wire_str(name: &str) -> Option<Self>
pub fn from_wire_str(name: &str) -> Option<Self>
Resolve a known spelling, retaining unknown names in the envelope layer.
Sourcepub fn is_request(self) -> bool
pub fn is_request(self) -> bool
Whether this is an application request permitted after the handshake.
Trait Implementations§
Source§impl AsRef<str> for ControlMessageType
impl AsRef<str> for ControlMessageType
Source§impl Clone for ControlMessageType
impl Clone for ControlMessageType
Source§fn clone(&self) -> ControlMessageType
fn clone(&self) -> ControlMessageType
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 moreimpl Copy for ControlMessageType
Source§impl Debug for ControlMessageType
impl Debug for ControlMessageType
Source§impl<'de> Deserialize<'de> for ControlMessageType
impl<'de> Deserialize<'de> for ControlMessageType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ControlMessageType
Source§impl<'_derivative_strum> From<&'_derivative_strum ControlMessageType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ControlMessageType> for &'static str
Source§fn from(x: &'_derivative_strum ControlMessageType) -> &'static str
fn from(x: &'_derivative_strum ControlMessageType) -> &'static str
Converts to this type from the input type.
Source§impl From<ControlMessageType> for &'static str
impl From<ControlMessageType> for &'static str
Source§fn from(x: ControlMessageType) -> &'static str
fn from(x: ControlMessageType) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for ControlMessageType
impl FromStr for ControlMessageType
Source§impl Hash for ControlMessageType
impl Hash for ControlMessageType
Source§impl IntoEnumIterator for ControlMessageType
impl IntoEnumIterator for ControlMessageType
type Iterator = ControlMessageTypeIter
fn iter() -> ControlMessageTypeIter ⓘ
Source§impl PartialEq for ControlMessageType
impl PartialEq for ControlMessageType
Source§impl Serialize for ControlMessageType
impl Serialize for ControlMessageType
impl StructuralPartialEq for ControlMessageType
Auto Trait Implementations§
impl Freeze for ControlMessageType
impl RefUnwindSafe for ControlMessageType
impl Send for ControlMessageType
impl Sync for ControlMessageType
impl Unpin for ControlMessageType
impl UnsafeUnpin for ControlMessageType
impl UnwindSafe for ControlMessageType
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