#[non_exhaustive]pub struct NetworkTierConfig {
pub network_tier: NetworkTier,
/* private fields */
}Expand description
NetworkTierConfig contains network tier 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.network_tier: NetworkTierNetwork tier configuration.
Implementations§
Source§impl NetworkTierConfig
impl NetworkTierConfig
pub fn new() -> Self
Sourcepub fn set_network_tier<T: Into<NetworkTier>>(self, v: T) -> Self
pub fn set_network_tier<T: Into<NetworkTier>>(self, v: T) -> Self
Sets the value of network_tier.
Trait Implementations§
Source§impl Clone for NetworkTierConfig
impl Clone for NetworkTierConfig
Source§fn clone(&self) -> NetworkTierConfig
fn clone(&self) -> NetworkTierConfig
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 NetworkTierConfig
impl Debug for NetworkTierConfig
Source§impl Default for NetworkTierConfig
impl Default for NetworkTierConfig
Source§fn default() -> NetworkTierConfig
fn default() -> NetworkTierConfig
Returns the “default value” for a type. Read more
Source§impl Message for NetworkTierConfig
impl Message for NetworkTierConfig
Source§impl PartialEq for NetworkTierConfig
impl PartialEq for NetworkTierConfig
impl StructuralPartialEq for NetworkTierConfig
Auto Trait Implementations§
impl Freeze for NetworkTierConfig
impl RefUnwindSafe for NetworkTierConfig
impl Send for NetworkTierConfig
impl Sync for NetworkTierConfig
impl Unpin for NetworkTierConfig
impl UnwindSafe for NetworkTierConfig
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