pub struct DiscoverySection {
pub lan: bool,
pub lan_port: u16,
pub mode: DiscoveryMode,
pub ephemeral_ids: bool,
}Fields§
§lan: bool§lan_port: u16§mode: DiscoveryModepublic | contacts | space-members | invite-only | hidden
ephemeral_ids: boolRotate LAN beacon identifiers daily. Handshake still uses the real PeerId.
Trait Implementations§
Source§impl Clone for DiscoverySection
impl Clone for DiscoverySection
Source§fn clone(&self) -> DiscoverySection
fn clone(&self) -> DiscoverySection
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 DiscoverySection
impl Debug for DiscoverySection
Source§impl<'de> Deserialize<'de> for DiscoverySection
impl<'de> Deserialize<'de> for DiscoverySection
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
Auto Trait Implementations§
impl Freeze for DiscoverySection
impl RefUnwindSafe for DiscoverySection
impl Send for DiscoverySection
impl Sync for DiscoverySection
impl Unpin for DiscoverySection
impl UnsafeUnpin for DiscoverySection
impl UnwindSafe for DiscoverySection
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