#[non_exhaustive]pub struct RuntimeNetworkInfo {
pub scan_time: Option<Timestamp>,
pub connections: Option<NetworkConnectionList>,
/* private fields */
}Expand description
Runtime networking information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scan_time: Option<Timestamp>Time of the last network scan.
connections: Option<NetworkConnectionList>Network connections.
Implementations§
Source§impl RuntimeNetworkInfo
impl RuntimeNetworkInfo
pub fn new() -> Self
Sourcepub fn set_scan_time<T>(self, v: T) -> Self
pub fn set_scan_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_scan_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_scan_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_connections<T>(self, v: T) -> Selfwhere
T: Into<NetworkConnectionList>,
pub fn set_connections<T>(self, v: T) -> Selfwhere
T: Into<NetworkConnectionList>,
Sets the value of connections.
§Example
ⓘ
use google_cloud_migrationcenter_v1::model::NetworkConnectionList;
let x = RuntimeNetworkInfo::new().set_connections(NetworkConnectionList::default()/* use setters */);Sourcepub fn set_or_clear_connections<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkConnectionList>,
pub fn set_or_clear_connections<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkConnectionList>,
Sets or clears the value of connections.
§Example
ⓘ
use google_cloud_migrationcenter_v1::model::NetworkConnectionList;
let x = RuntimeNetworkInfo::new().set_or_clear_connections(Some(NetworkConnectionList::default()/* use setters */));
let x = RuntimeNetworkInfo::new().set_or_clear_connections(None::<NetworkConnectionList>);Trait Implementations§
Source§impl Clone for RuntimeNetworkInfo
impl Clone for RuntimeNetworkInfo
Source§fn clone(&self) -> RuntimeNetworkInfo
fn clone(&self) -> RuntimeNetworkInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 RuntimeNetworkInfo
impl Debug for RuntimeNetworkInfo
Source§impl Default for RuntimeNetworkInfo
impl Default for RuntimeNetworkInfo
Source§fn default() -> RuntimeNetworkInfo
fn default() -> RuntimeNetworkInfo
Returns the “default value” for a type. Read more
Source§impl Message for RuntimeNetworkInfo
impl Message for RuntimeNetworkInfo
Source§impl PartialEq for RuntimeNetworkInfo
impl PartialEq for RuntimeNetworkInfo
impl StructuralPartialEq for RuntimeNetworkInfo
Auto Trait Implementations§
impl Freeze for RuntimeNetworkInfo
impl RefUnwindSafe for RuntimeNetworkInfo
impl Send for RuntimeNetworkInfo
impl Sync for RuntimeNetworkInfo
impl Unpin for RuntimeNetworkInfo
impl UnsafeUnpin for RuntimeNetworkInfo
impl UnwindSafe for RuntimeNetworkInfo
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