pub struct NetCaps {
pub hosts: Vec<String>,
pub allow_tcp: bool,
pub allow_udp: bool,
}Fields§
§hosts: Vec<String>§allow_tcp: bool§allow_udp: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for NetCaps
impl<'de> Deserialize<'de> for NetCaps
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
impl Eq for NetCaps
impl StructuralPartialEq for NetCaps
Auto Trait Implementations§
impl Freeze for NetCaps
impl RefUnwindSafe for NetCaps
impl Send for NetCaps
impl Sync for NetCaps
impl Unpin for NetCaps
impl UnwindSafe for NetCaps
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.