pub struct ContractConnection {
pub cidr: String,
pub port: u16,
}Expand description
One direct connection in the agent’s startup contract, already resolved to an address range.
Fields§
§cidr: StringPrivate IPv4 CIDR.
port: u16TCP port, never 53.
Trait Implementations§
Source§impl Clone for ContractConnection
impl Clone for ContractConnection
Source§impl Debug for ContractConnection
impl Debug for ContractConnection
Source§impl<'de> Deserialize<'de> for ContractConnection
impl<'de> Deserialize<'de> for ContractConnection
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 ContractConnection
Source§impl PartialEq for ContractConnection
impl PartialEq for ContractConnection
Source§impl Serialize for ContractConnection
impl Serialize for ContractConnection
impl StructuralPartialEq for ContractConnection
Auto Trait Implementations§
impl Forget for ContractConnection
impl Freeze for ContractConnection
impl Move for ContractConnection
impl RefUnwindSafe for ContractConnection
impl Send for ContractConnection
impl Sync for ContractConnection
impl Unpin for ContractConnection
impl UnsafeUnpin for ContractConnection
impl UnwindSafe for ContractConnection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
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.