pub enum QueryRequest {
Show 19 variants
InterfaceStats,
PathTable {
max_hops: Option<u8>,
},
RateTable,
NextHop {
dest_hash: [u8; 16],
},
NextHopIfName {
dest_hash: [u8; 16],
},
LinkCount,
DropPath {
dest_hash: [u8; 16],
},
DropAllVia {
transport_hash: [u8; 16],
},
DropAnnounceQueues,
TransportIdentity,
GetBlackholed,
BlackholeIdentity {
identity_hash: [u8; 16],
duration_hours: Option<f64>,
reason: Option<String>,
},
UnblackholeIdentity {
identity_hash: [u8; 16],
},
HasPath {
dest_hash: [u8; 16],
},
HopsTo {
dest_hash: [u8; 16],
},
RecallIdentity {
dest_hash: [u8; 16],
},
LocalDestinations,
Links,
Resources,
}Expand description
Queries that can be sent to the driver.
Variants§
InterfaceStats
Get interface statistics and transport info.
PathTable
Get path table entries, optionally filtered by max hops.
RateTable
Get rate table entries.
NextHop
Look up the next hop for a destination.
NextHopIfName
Look up the next hop interface name for a destination.
LinkCount
Get link table entry count.
DropPath
Drop a specific path.
DropAllVia
Drop all paths that route via a given transport hash.
DropAnnounceQueues
Drop all announce queues.
TransportIdentity
Get the transport identity hash.
GetBlackholed
Get all blackholed identities.
BlackholeIdentity
Add an identity to the blackhole list.
UnblackholeIdentity
Remove an identity from the blackhole list.
HasPath
Check if a path exists to a destination.
HopsTo
Get hop count to a destination.
RecallIdentity
Recall identity info for a destination.
LocalDestinations
Get locally registered destinations.
Links
Get active links.
Resources
Get active resource transfers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryRequest
impl RefUnwindSafe for QueryRequest
impl Send for QueryRequest
impl Sync for QueryRequest
impl Unpin for QueryRequest
impl UnwindSafe for QueryRequest
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