pub struct NetworkRuntime { /* private fields */ }Expand description
Refreshable network configuration shared by network adapters.
Implementations§
Source§impl NetworkRuntime
impl NetworkRuntime
Sourcepub fn from_config(config: NetworkConfig) -> Self
pub fn from_config(config: NetworkConfig) -> Self
Creates a refreshable handle from validated network configuration.
Sourcepub fn from_overrides(
overrides: &NetworkEnvOverrides,
) -> Result<Self, NetworkConfigError>
pub fn from_overrides( overrides: &NetworkEnvOverrides, ) -> Result<Self, NetworkConfigError>
Creates a refreshable handle from environment overrides.
Sourcepub fn current(&self) -> NetworkConfig
pub fn current(&self) -> NetworkConfig
Returns the latest validated network configuration.
Sourcepub fn qos_runtime(&self) -> QosRuntime
pub fn qos_runtime(&self) -> QosRuntime
Returns the shared QoS runtime counters for network adapters.
Sourcepub fn refresh_from_overrides(
&self,
overrides: &NetworkEnvOverrides,
) -> Result<NetworkConfig, NetworkConfigError>
pub fn refresh_from_overrides( &self, overrides: &NetworkEnvOverrides, ) -> Result<NetworkConfig, NetworkConfigError>
Replaces the active network configuration after validating overrides.
Sourcepub fn refresh_from_environment(
&self,
environment: &EnvironmentConfig,
) -> Result<NetworkConfig, NetworkConfigError>
pub fn refresh_from_environment( &self, environment: &EnvironmentConfig, ) -> Result<NetworkConfig, NetworkConfigError>
Replaces the active network configuration from a typed environment snapshot.
Trait Implementations§
Source§impl Clone for NetworkRuntime
impl Clone for NetworkRuntime
Source§fn clone(&self) -> NetworkRuntime
fn clone(&self) -> NetworkRuntime
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 NetworkRuntime
impl Debug for NetworkRuntime
Source§impl ReleaseMetadataPort for NetworkRuntime
impl ReleaseMetadataPort for NetworkRuntime
fn open(&self) -> Result<Box<dyn ReleaseMetadataSession>, ReleaseMetadataError>
Auto Trait Implementations§
impl Freeze for NetworkRuntime
impl RefUnwindSafe for NetworkRuntime
impl Send for NetworkRuntime
impl Sync for NetworkRuntime
impl Unpin for NetworkRuntime
impl UnsafeUnpin for NetworkRuntime
impl UnwindSafe for NetworkRuntime
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