pub struct InitialMtu(/* private fields */);Implementations§
Source§impl InitialMtu
impl InitialMtu
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 Clone for InitialMtu
impl Clone for InitialMtu
Source§fn clone(&self) -> InitialMtu
fn clone(&self) -> InitialMtu
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 moreSource§impl Debug for InitialMtu
impl Debug for InitialMtu
Source§impl Default for InitialMtu
impl Default for InitialMtu
Source§impl From<InitialMtu> for u16
impl From<InitialMtu> for u16
Source§fn from(value: InitialMtu) -> Self
fn from(value: InitialMtu) -> Self
Converts to this type from the input type.
Source§impl From<InitialMtu> for usize
impl From<InitialMtu> for usize
Source§fn from(value: InitialMtu) -> Self
fn from(value: InitialMtu) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InitialMtu
impl PartialEq for InitialMtu
Source§impl TryFrom<u16> for InitialMtu
impl TryFrom<u16> for InitialMtu
impl Copy for InitialMtu
impl StructuralPartialEq for InitialMtu
Auto Trait Implementations§
impl Freeze for InitialMtu
impl RefUnwindSafe for InitialMtu
impl Send for InitialMtu
impl Sync for InitialMtu
impl Unpin for InitialMtu
impl UnwindSafe for InitialMtu
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