pub enum PeerSource {
Static(Vec<String>),
Discover {
disc_port: u16,
data_base: u16,
via: Option<String>,
},
}Expand description
How this node finds its peers.
Variants§
Static(Vec<String>)
Explicit host:port list, index = rank.
Discover
UDP rendezvous. via unicasts the query to a known host instead of
broadcasting — the path that works from a NAT’d or broadcast-restricted
network (mobile hotspots, Docker, QEMU).
Trait Implementations§
Source§impl Clone for PeerSource
impl Clone for PeerSource
Source§impl Debug for PeerSource
impl Debug for PeerSource
Auto Trait Implementations§
impl Freeze for PeerSource
impl RefUnwindSafe for PeerSource
impl Send for PeerSource
impl Sync for PeerSource
impl Unpin for PeerSource
impl UnsafeUnpin for PeerSource
impl UnwindSafe for PeerSource
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more