pub struct TransportObservation {
pub external_addrs: Vec<SocketAddr>,
pub can_receive_direct: Option<bool>,
pub connected_peers: usize,
pub min_observed_mtu: Option<u16>,
pub lost_plpmtud_probes: u64,
pub black_holes_detected: u64,
}Expand description
Observed transport facts fed into assess_transport_environment.
Kept as a plain input struct (not the live NodeStatus) so the assessment
logic is pure and unit-testable independent of the network stack.
Fields§
§external_addrs: Vec<SocketAddr>External (reflexive) addresses ant-quic has observed for this node.
can_receive_direct: Option<bool>Whether ant-quic believes this node can receive direct inbound.
connected_peers: usizeCount of currently connected peers.
min_observed_mtu: Option<u16>Smallest current_mtu observed across connected peers, if any.
lost_plpmtud_probes: u64Total lost PLPMTUD probes across connected peers.
black_holes_detected: u64Total black-hole detections across connected peers.
Trait Implementations§
Source§impl Clone for TransportObservation
impl Clone for TransportObservation
Source§fn clone(&self) -> TransportObservation
fn clone(&self) -> TransportObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransportObservation
impl Debug for TransportObservation
Source§impl Default for TransportObservation
impl Default for TransportObservation
Source§fn default() -> TransportObservation
fn default() -> TransportObservation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransportObservation
impl RefUnwindSafe for TransportObservation
impl Send for TransportObservation
impl Sync for TransportObservation
impl Unpin for TransportObservation
impl UnsafeUnpin for TransportObservation
impl UnwindSafe for TransportObservation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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