Enum tdn::prelude::StateResponse [−]
pub enum StateResponse {
Stable(Vec<(PeerId, bool), Global>),
DHT(Vec<PeerId, Global>),
Seed(Vec<Peer, Global>),
}
Expand description
Network state info response.
Variants
Stable(Vec<(PeerId, bool), Global>)
response is peer list and peer is relay or directly.
DHT(Vec<PeerId, Global>)
response is peer list.
Seed(Vec<Peer, Global>)
response is socket list.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StateResponse
impl Send for StateResponse
impl Sync for StateResponse
impl Unpin for StateResponse
impl UnwindSafe for StateResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more