pub enum AppData {
Show 16 variants
Echo(String),
DailPeer(PeerId, MultiaddrString),
KademliaStoreRecord {
key: Vec<u8>,
value: Vec<u8>,
expiration_time: Option<Instant>,
explicit_peers: Option<Vec<PeerIdString>>,
},
KademliaLookupRecord {
key: Vec<u8>,
},
KademliaGetProviders {
key: Vec<u8>,
},
KademliaStopProviding {
key: Vec<u8>,
},
KademliaDeleteRecord {
key: Vec<u8>,
},
KademliaGetRoutingTableInfo,
FetchData {
keys: Vec<Vec<u8>>,
peer: PeerId,
},
GetNetworkInfo,
GossipsubBroadcastMessage {
topic: String,
message: Vec<String>,
},
GossipsubJoinNetwork(String),
GossipsubGetInfo,
GossipsubExitNetwork(String),
GossipsubBlacklistPeer(PeerId),
GossipsubFilterBlacklist(PeerId),
}
Expand description
Request sent from the application layer to the networking layer.
Variants§
Echo(String)
A simple echo message.
DailPeer(PeerId, MultiaddrString)
Dail peer.
KademliaStoreRecord
Store a value associated with a given key in the Kademlia DHT.
Fields
§
explicit_peers: Option<Vec<PeerIdString>>
KademliaLookupRecord
Perform a lookup of a value associated with a given key in the Kademlia DHT.
KademliaGetProviders
Perform a lookup of peers that store a record.
KademliaStopProviding
Stop providing a record on the network.
KademliaDeleteRecord
Remove record from local store.
KademliaGetRoutingTableInfo
Return important information about the local routing table.
FetchData
Fetch data(s) quickly from a peer over the network.
GetNetworkInfo
Get network information about the node.
GossipsubBroadcastMessage
Send message to gossip peers in a mesh network.
GossipsubJoinNetwork(String)
Join a mesh network.
GossipsubGetInfo
Get gossip information about node.
GossipsubExitNetwork(String)
Leave a network we are a part of.
GossipsubBlacklistPeer(PeerId)
Blacklist a peer explicitly.
GossipsubFilterBlacklist(PeerId)
Remove a peer from the blacklist.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppData
impl RefUnwindSafe for AppData
impl Send for AppData
impl Sync for AppData
impl Unpin for AppData
impl UnwindSafe for AppData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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