Struct BearerIpConfig
#[non_exhaustive]pub struct BearerIpConfig {
pub method: Option<BearerIpMethod>,
pub address: Option<String>,
pub prefix: Option<u32>,
pub dns1: Option<String>,
pub dns2: Option<String>,
pub dns3: Option<String>,
pub gateway: Option<String>,
pub mtu: Option<u32>,
}Expand description
The IP settings of a connected bearer.
The service uses this layout for IPv4 and IPv6. Only method is certain
to exist. The other fields matter for the static method.
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.method: Option<BearerIpMethod>How to configure the interface.
address: Option<String>The IP address.
prefix: Option<u32>The length of the network prefix.
dns1: Option<String>The first DNS server.
dns2: Option<String>The second DNS server.
dns3: Option<String>The third DNS server.
gateway: Option<String>The default gateway.
mtu: Option<u32>The maximum transmission unit.
Trait Implementations§
§impl Clone for BearerIpConfig
impl Clone for BearerIpConfig
§fn clone(&self) -> BearerIpConfig
fn clone(&self) -> BearerIpConfig
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 more§impl Debug for BearerIpConfig
impl Debug for BearerIpConfig
§impl Default for BearerIpConfig
impl Default for BearerIpConfig
§fn default() -> BearerIpConfig
fn default() -> BearerIpConfig
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for BearerIpConfig
impl<'de> Deserialize<'de> for BearerIpConfig
§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
impl Eq for BearerIpConfig
§impl From<BearerIpConfig> for Value<'static>
impl From<BearerIpConfig> for Value<'static>
§fn from(s: BearerIpConfig) -> Self
fn from(s: BearerIpConfig) -> Self
Converts to this type from the input type.
§impl PartialEq for BearerIpConfig
impl PartialEq for BearerIpConfig
§impl Serialize for BearerIpConfig
impl Serialize for BearerIpConfig
impl StructuralPartialEq for BearerIpConfig
§impl TryFrom<BearerIpConfig> for OwnedValue
impl TryFrom<BearerIpConfig> for OwnedValue
§fn try_from(s: BearerIpConfig) -> Result<Self>
fn try_from(s: BearerIpConfig) -> Result<Self>
Performs the conversion.
§impl TryFrom<OwnedValue> for BearerIpConfig
impl TryFrom<OwnedValue> for BearerIpConfig
§impl TryFrom<Value<'static>> for BearerIpConfig
impl TryFrom<Value<'static>> for BearerIpConfig
§impl Type for BearerIpConfig
impl Type for BearerIpConfig
Auto Trait Implementations§
impl Freeze for BearerIpConfig
impl RefUnwindSafe for BearerIpConfig
impl Send for BearerIpConfig
impl Sync for BearerIpConfig
impl Unpin for BearerIpConfig
impl UnsafeUnpin for BearerIpConfig
impl UnwindSafe for BearerIpConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.