pub struct ConnectionOutcome {
pub success: bool,
pub rtt_ms: Option<u32>,
pub capabilities_discovered: Option<PeerCapabilities>,
}Expand description
Result of a connection attempt
Fields§
§success: boolWhether the connection succeeded
rtt_ms: Option<u32>RTT in milliseconds if available
capabilities_discovered: Option<PeerCapabilities>Capabilities discovered during connection
Trait Implementations§
Source§impl Clone for ConnectionOutcome
impl Clone for ConnectionOutcome
Source§fn clone(&self) -> ConnectionOutcome
fn clone(&self) -> ConnectionOutcome
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 moreAuto Trait Implementations§
impl Freeze for ConnectionOutcome
impl RefUnwindSafe for ConnectionOutcome
impl Send for ConnectionOutcome
impl Sync for ConnectionOutcome
impl Unpin for ConnectionOutcome
impl UnwindSafe for ConnectionOutcome
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