Struct s2n_quic_core::datagram::traits::ConnectionInfo
source · #[non_exhaustive]pub struct ConnectionInfo {
pub max_datagram_payload: u64,
pub waker: Waker,
}
Expand description
Information about the accepted connection for which the Sender/Receiver are being created.
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.max_datagram_payload: u64
The peer’s limit on the size of datagrams they will accept. Datagrams larger than this will result in an error.
waker: Waker
The waker
associated with this connection. When woken, the connection will check the
interest in sending (Sender::has_transmission_interest
), and send packets if necessary.
This is useful for applications that wish to enqueue packets with Sender
without calling
datagram_mut
, perhaps because they don’t have an available handle to the connection when
enqueuing packets, or wish to avoid incurring the lock/unlock required by datagram_mut
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
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