Struct s2n_quic_transport::path::mtu::BaseMtu
source · pub struct BaseMtu(/* private fields */);
Implementations§
source§impl BaseMtu
impl BaseMtu
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§
impl Copy for BaseMtu
impl StructuralPartialEq for BaseMtu
Auto Trait Implementations§
impl Freeze for BaseMtu
impl RefUnwindSafe for BaseMtu
impl Send for BaseMtu
impl Sync for BaseMtu
impl Unpin for BaseMtu
impl UnwindSafe for BaseMtu
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)