Enum tdn::prelude::StateResponse
source · pub enum StateResponse {
Stable(Vec<(PeerId, bool)>),
DHT(Vec<PeerId>),
Seed(Vec<Peer>),
}
Expand description
Network state info response.
Variants§
Stable(Vec<(PeerId, bool)>)
response is peer list and peer is relay or directly.
DHT(Vec<PeerId>)
response is peer list.
Seed(Vec<Peer>)
response is socket list.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateResponse
impl RefUnwindSafe for StateResponse
impl Send for StateResponse
impl Sync for StateResponse
impl Unpin for StateResponse
impl UnwindSafe for StateResponse
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