pub struct ProtocolSupport {
pub protocol_version: u32,
pub send_host_create_message: bool,
pub send_host_start_message: bool,
pub hv_socket_config_on_startup: bool,
pub send_lifecycle_notifications: bool,
pub modify_service_settings_supported: bool,
}Expand description
Capability block returned in the NegotiateProtocol response.
Field set is dictated by hcsshim’s ProtocolSupport — we cannot collapse
the bool flags into an enum without diverging from the wire format.
Fields§
§protocol_version: u32§send_host_create_message: bool§send_host_start_message: bool§hv_socket_config_on_startup: bool§send_lifecycle_notifications: bool§modify_service_settings_supported: boolWhether the guest advertises support for the ModifyServiceSettings
RPC (hcsshim’s GcsCapabilities.ModifyServiceSettingsSupported). The
Server 2025 inbox GCS does NOT advertise this, and sending the RPC
(e.g. StartLogForwarding) yields Message Type 270532865 unknown.
hcsshim gates StartLogForwarding on this flag; so do we.
Trait Implementations§
Source§impl Clone for ProtocolSupport
impl Clone for ProtocolSupport
Source§fn clone(&self) -> ProtocolSupport
fn clone(&self) -> ProtocolSupport
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 ProtocolSupport
impl Debug for ProtocolSupport
Source§impl Default for ProtocolSupport
impl Default for ProtocolSupport
Source§fn default() -> ProtocolSupport
fn default() -> ProtocolSupport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtocolSupport
impl<'de> Deserialize<'de> for ProtocolSupport
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
Auto Trait Implementations§
impl Freeze for ProtocolSupport
impl RefUnwindSafe for ProtocolSupport
impl Send for ProtocolSupport
impl Sync for ProtocolSupport
impl Unpin for ProtocolSupport
impl UnsafeUnpin for ProtocolSupport
impl UnwindSafe for ProtocolSupport
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