pub enum PeerEndpointConfig {
Tcp {
address: String,
},
Bluetooth {
ip: String,
},
}Expand description
Mechanism-specific peer connection settings.
Variants§
Tcp
A directly reachable transport endpoint.
Bluetooth
A peer expected to be reachable over a Bluetooth PAN link.
Trait Implementations§
Source§impl Clone for PeerEndpointConfig
impl Clone for PeerEndpointConfig
Source§fn clone(&self) -> PeerEndpointConfig
fn clone(&self) -> PeerEndpointConfig
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 PeerEndpointConfig
impl Debug for PeerEndpointConfig
Source§impl<'de> Deserialize<'de> for PeerEndpointConfig
impl<'de> Deserialize<'de> for PeerEndpointConfig
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 PeerEndpointConfig
impl PartialEq for PeerEndpointConfig
Source§fn eq(&self, other: &PeerEndpointConfig) -> bool
fn eq(&self, other: &PeerEndpointConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PeerEndpointConfig
impl Serialize for PeerEndpointConfig
impl StructuralPartialEq for PeerEndpointConfig
Auto Trait Implementations§
impl Freeze for PeerEndpointConfig
impl RefUnwindSafe for PeerEndpointConfig
impl Send for PeerEndpointConfig
impl Sync for PeerEndpointConfig
impl Unpin for PeerEndpointConfig
impl UnsafeUnpin for PeerEndpointConfig
impl UnwindSafe for PeerEndpointConfig
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