Skip to main content

RnsRpcRequest

Enum RnsRpcRequest 

Source
pub enum RnsRpcRequest {
Show 19 variants InterfaceStats, PathTable { max_hops: Option<RnsInteger>, }, RateTable, NextHopInterface { destination_hash: DestinationHash, }, NextHop { destination_hash: DestinationHash, }, FirstHopTimeout { destination_hash: DestinationHash, }, LinkCount, PacketRssi { packet_hash: PacketHashArgument, }, PacketSnr { packet_hash: PacketHashArgument, }, PacketQuality { packet_hash: PacketHashArgument, }, BlackholedIdentities, IsBlackholed { identity_hash: IdentityHash, }, DropPath { destination_hash: DestinationHash, }, DropAllVia { transport_id: TransportId, }, DropAnnounceQueues, BlackholeIdentity { identity_hash: IdentityHash, until: Option<RnsNumber>, reason: Option<String>, }, UnblackholeIdentity { identity_hash: IdentityHash, }, DestinationData { operation: DestinationDataOperation, destination_hash: DestinationHash, }, RetainIdentity { identity_hash: IdentityHash, },
}

Variants§

§

InterfaceStats

§

PathTable

Fields

§max_hops: Option<RnsInteger>
§

RateTable

§

NextHopInterface

Fields

§destination_hash: DestinationHash
§

NextHop

Fields

§destination_hash: DestinationHash
§

FirstHopTimeout

Fields

§destination_hash: DestinationHash
§

LinkCount

§

PacketRssi

Fields

§

PacketSnr

Fields

§

PacketQuality

Fields

§

BlackholedIdentities

§

IsBlackholed

Fields

§identity_hash: IdentityHash
§

DropPath

Fields

§destination_hash: DestinationHash
§

DropAllVia

Fields

§transport_id: TransportId
§

DropAnnounceQueues

§

BlackholeIdentity

Fields

§identity_hash: IdentityHash
§reason: Option<String>
§

UnblackholeIdentity

Fields

§identity_hash: IdentityHash
§

DestinationData

Fields

§destination_hash: DestinationHash
§

RetainIdentity

Fields

§identity_hash: IdentityHash

Implementations§

Source§

impl RnsRpcRequest

Source

pub const fn verb(&self) -> RpcVerb

Source§

impl RnsRpcRequest

Source

pub fn encode_pickle(&self) -> Result<Vec<u8>, RnsManagementEncodeError>

Encode the Python-pickle request payload used by RNS through 1.3.3.

Shared-instance authentication and framing are common to both dialects; RNS switched the payload object codec in 1.3.4. Keeping this small protocol-3 encoder in the wire-contract crate lets host clients fall back without pulling a Python-specific object model into embedded builds.

Source

pub fn encode_message_pack(&self) -> Result<Vec<u8>, RnsManagementEncodeError>

Trait Implementations§

Source§

impl Debug for RnsRpcRequest

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for RnsRpcRequest

Source§

fn eq(&self, other: &RnsRpcRequest) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RnsRpcRequest

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.