Struct s2n_quic_transport::path::mtu::MaxMtu
source · pub struct MaxMtu(/* private fields */);
Implementations§
source§impl MaxMtu
impl MaxMtu
sourcepub fn max_datagram_size(&self, peer_socket_address: &SocketAddress) -> u16
pub fn max_datagram_size(&self, peer_socket_address: &SocketAddress) -> u16
The largest size of a QUIC datagram that can be sent on a path that supports this MTU. This does not include the size of UDP and IP headers.
Trait Implementations§
source§impl PartialEq for MaxMtu
impl PartialEq for MaxMtu
impl Copy for MaxMtu
impl StructuralPartialEq for MaxMtu
Auto Trait Implementations§
impl Freeze for MaxMtu
impl RefUnwindSafe for MaxMtu
impl Send for MaxMtu
impl Sync for MaxMtu
impl Unpin for MaxMtu
impl UnwindSafe for MaxMtu
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