Skip to main content

QueryRequest

Enum QueryRequest 

Source
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.

Fields

§max_hops: Option<u8>
§

RateTable

Get rate table entries.

§

NextHop

Look up the next hop for a destination.

Fields

§dest_hash: [u8; 16]
§

NextHopIfName

Look up the next hop interface name for a destination.

Fields

§dest_hash: [u8; 16]
§

LinkCount

Get link table entry count.

§

DropPath

Drop a specific path.

Fields

§dest_hash: [u8; 16]
§

DropAllVia

Drop all paths that route via a given transport hash.

Fields

§transport_hash: [u8; 16]
§

DropAnnounceQueues

Drop all announce queues.

§

TransportIdentity

Get the transport identity hash.

§

GetBlackholed

Get all blackholed identities.

§

BlackholeIdentity

Add an identity to the blackhole list.

Fields

§identity_hash: [u8; 16]
§duration_hours: Option<f64>
§reason: Option<String>
§

UnblackholeIdentity

Remove an identity from the blackhole list.

Fields

§identity_hash: [u8; 16]
§

HasPath

Check if a path exists to a destination.

Fields

§dest_hash: [u8; 16]
§

HopsTo

Get hop count to a destination.

Fields

§dest_hash: [u8; 16]
§

RecallIdentity

Recall identity info for a destination.

Fields

§dest_hash: [u8; 16]
§

LocalDestinations

Get locally registered destinations.

Get active links.

§

Resources

Get active resource transfers.

Trait Implementations§

Source§

impl Debug for QueryRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.