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: DestinationHashNextHop
Fields
§
destination_hash: DestinationHashFirstHopTimeout
Fields
§
destination_hash: DestinationHashLinkCount
PacketRssi
Fields
§
packet_hash: PacketHashArgumentPacketSnr
Fields
§
packet_hash: PacketHashArgumentPacketQuality
Fields
§
packet_hash: PacketHashArgumentBlackholedIdentities
IsBlackholed
Fields
§
identity_hash: IdentityHashDropPath
Fields
§
destination_hash: DestinationHashDropAllVia
Fields
§
transport_id: TransportIdDropAnnounceQueues
BlackholeIdentity
UnblackholeIdentity
Fields
§
identity_hash: IdentityHashDestinationData
RetainIdentity
Fields
§
identity_hash: IdentityHashImplementations§
Source§impl RnsRpcRequest
impl RnsRpcRequest
Sourcepub fn encode_pickle(&self) -> Result<Vec<u8>, RnsManagementEncodeError>
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.
pub fn encode_message_pack(&self) -> Result<Vec<u8>, RnsManagementEncodeError>
Trait Implementations§
Source§impl Debug for RnsRpcRequest
impl Debug for RnsRpcRequest
Source§impl PartialEq for RnsRpcRequest
impl PartialEq for RnsRpcRequest
impl StructuralPartialEq for RnsRpcRequest
Auto Trait Implementations§
impl Freeze for RnsRpcRequest
impl RefUnwindSafe for RnsRpcRequest
impl Send for RnsRpcRequest
impl Sync for RnsRpcRequest
impl Unpin for RnsRpcRequest
impl UnsafeUnpin for RnsRpcRequest
impl UnwindSafe for RnsRpcRequest
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