pub struct LoggingContext {
pub session_id: String,
pub peer_id: Option<PeerId>,
pub endpoint_role: String,
pub bootstrap_node: Option<SocketAddr>,
pub current_phase: NatTraversalPhase,
pub context_fields: HashMap<String, String>,
}Expand description
Logging context for correlation
Fields§
§session_id: StringSession ID for correlation
peer_id: Option<PeerId>Peer ID being connected to
endpoint_role: StringLocal endpoint role
bootstrap_node: Option<SocketAddr>Bootstrap node being used
current_phase: NatTraversalPhaseCurrent phase
context_fields: HashMap<String, String>Additional context fields
Trait Implementations§
Source§impl Clone for LoggingContext
impl Clone for LoggingContext
Source§fn clone(&self) -> LoggingContext
fn clone(&self) -> LoggingContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoggingContext
impl Debug for LoggingContext
Source§impl<'de> Deserialize<'de> for LoggingContext
impl<'de> Deserialize<'de> for LoggingContext
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
Auto Trait Implementations§
impl Freeze for LoggingContext
impl RefUnwindSafe for LoggingContext
impl Send for LoggingContext
impl Sync for LoggingContext
impl Unpin for LoggingContext
impl UnwindSafe for LoggingContext
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