pub struct NetworkSection {
pub allow_bind: Vec<PortSpec>,
pub deny_bind: Vec<PortSpec>,
pub allow: Vec<String>,
pub deny: Vec<String>,
pub port_remap: bool,
}Fields§
§allow_bind: Vec<PortSpec>§deny_bind: Vec<PortSpec>§allow: Vec<String>§deny: Vec<String>§port_remap: boolTrait Implementations§
Source§impl Clone for NetworkSection
impl Clone for NetworkSection
Source§fn clone(&self) -> NetworkSection
fn clone(&self) -> NetworkSection
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 NetworkSection
impl Debug for NetworkSection
Source§impl Default for NetworkSection
impl Default for NetworkSection
Source§fn default() -> NetworkSection
fn default() -> NetworkSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkSectionwhere
NetworkSection: Default,
impl<'de> Deserialize<'de> for NetworkSectionwhere
NetworkSection: Default,
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
Source§impl PartialEq for NetworkSection
impl PartialEq for NetworkSection
Source§fn eq(&self, other: &NetworkSection) -> bool
fn eq(&self, other: &NetworkSection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkSection
Auto Trait Implementations§
impl Freeze for NetworkSection
impl RefUnwindSafe for NetworkSection
impl Send for NetworkSection
impl Sync for NetworkSection
impl Unpin for NetworkSection
impl UnsafeUnpin for NetworkSection
impl UnwindSafe for NetworkSection
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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