#[non_exhaustive]pub struct HolePunchStatus {
pub attempts: u64,
pub successes: u64,
pub last_error: Option<String>,
pub last_error_at: Option<u64>,
}Expand description
Direct-connection upgrades of relayed connections since start.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attempts: u64§successes: u64§last_error: Option<String>§last_error_at: Option<u64>Trait Implementations§
Source§impl Clone for HolePunchStatus
impl Clone for HolePunchStatus
Source§impl Debug for HolePunchStatus
impl Debug for HolePunchStatus
Source§impl Default for HolePunchStatus
impl Default for HolePunchStatus
Source§impl<'de> Deserialize<'de> for HolePunchStatus
impl<'de> Deserialize<'de> for HolePunchStatus
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 Eq for HolePunchStatus
Source§impl PartialEq for HolePunchStatus
impl PartialEq for HolePunchStatus
Source§impl Serialize for HolePunchStatus
impl Serialize for HolePunchStatus
impl StructuralPartialEq for HolePunchStatus
Auto Trait Implementations§
impl Freeze for HolePunchStatus
impl RefUnwindSafe for HolePunchStatus
impl Send for HolePunchStatus
impl Sync for HolePunchStatus
impl Unpin for HolePunchStatus
impl UnsafeUnpin for HolePunchStatus
impl UnwindSafe for HolePunchStatus
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