pub enum NoxEvent {
Show 16 variants
NodeStarted {
timestamp: u64,
},
PacketReceived {
packet_id: String,
data: Vec<u8>,
size_bytes: usize,
},
SendPacket {
next_hop_peer_id: String,
packet_id: String,
data: Vec<u8>,
},
PayloadDecrypted {
packet_id: String,
payload: Vec<u8>,
},
PeerConnected {
peer_id: String,
},
PeerDisconnected {
peer_id: String,
},
RelayerRegistered {
address: String,
sphinx_key: String,
url: String,
stake: String,
role: u8,
ingress_url: Option<String>,
metadata_url: Option<String>,
},
RelayerRemoved {
address: String,
},
RelayerKeyRotated {
address: String,
new_sphinx_key: String,
},
RelayerRoleUpdated {
address: String,
new_role: u8,
},
RelayerUrlUpdated {
address: String,
new_url: String,
},
RelayerSlashed {
address: String,
amount: String,
slasher: String,
},
RegistryPaused {
by: String,
},
RegistryUnpaused {
by: String,
},
PacketProcessed {
packet_id: String,
duration_ms: u64,
},
HopTimingsRecorded {
packet_id: String,
ecdh_ns: u64,
key_derive_ns: u64,
mac_verify_ns: u64,
routing_decrypt_ns: u64,
body_decrypt_ns: u64,
blinding_ns: u64,
total_sphinx_ns: u64,
},
}Variants§
NodeStarted
PacketReceived
SendPacket
PayloadDecrypted
PeerConnected
PeerDisconnected
RelayerRegistered
Fields
RelayerRemoved
RelayerKeyRotated
A node’s Sphinx routing key was rotated on-chain.
RelayerRoleUpdated
A node’s role was updated on-chain (1=Relay, 2=Exit, 3=Full).
RelayerUrlUpdated
A node’s URL was updated on-chain.
RelayerSlashed
A node was slashed on-chain.
RegistryPaused
NoxRegistry contract was paused.
RegistryUnpaused
NoxRegistry contract was unpaused.
PacketProcessed
HopTimingsRecorded
Per-hop Sphinx processing timing breakdown (only emitted with hop-metrics feature).
Nanosecond-precision timings for ECDH, key derivation, MAC, routing/body decryption, blinding.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NoxEvent
impl<'de> Deserialize<'de> for NoxEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for NoxEvent
Auto Trait Implementations§
impl Freeze for NoxEvent
impl RefUnwindSafe for NoxEvent
impl Send for NoxEvent
impl Sync for NoxEvent
impl Unpin for NoxEvent
impl UnsafeUnpin for NoxEvent
impl UnwindSafe for NoxEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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