pub fn max_datagram_size(&self) -> Option<usize> {
        // This is usually 1182 bytes, but we shouldn't document that without a doctest.
        let max_size = self.mtu as usize
            - 1                 // flags byte
            - self.rem_cid.len()
            - 4                 // worst-case packet number size
            - self.spaces[SpaceId::Data].crypto.as_ref().map_or_else(|| &self.zero_rtt_crypto.as_ref().unwrap().packet, |x| &x.packet.local).tag_len()
            - Datagram::SIZE_BOUND;
        let limit = self.peer_params.max_datagram_frame_size?.into_inner();
        Some(limit.min(max_size as u64) as usize)
    }
/// Compute the maximum size of datagrams that may passed to `send_datagram`
///
/// Returns `None` if datagrams are unsupported by the peer or disabled locally.
///
/// This may change over the lifetime of a connection according to variation in the path MTU
/// estimate. The peer can also enforce an arbitrarily small fixed limit, but if the peer's
/// limit is large this is guaranteed to be a little over a kilobyte at minimum.
///
/// Not necessarily the maximum size of received datagrams.
Compute the maximum size of datagrams that may passed to `send_datagram`
Returns `None` if datagrams are unsupported by the peer or disabled locally.

This may change over the lifetime of a connection according to variation in the path MTU
estimate. The peer can also enforce an arbitrarily small fixed limit, but if the peer's
limit is large this is guaranteed to be a little over a kilobyte at minimum.

Not necessarily the maximum size of received datagrams.
Compute the maximum size of datagrams that may passed to ` send_datagram ` Returns ` None ` if datagrams are unsupported by the peer or disabled locally . This may change over the lifetime of a connection according to variation in the path MTU estimate . The peer can also enforce an arbitrarily small fixed limit but if the peer ' s limit is large this is guaranteed to be a little over a kilobyte at minimum . Not necessarily the maximum size of received datagrams .
pub fn max_datagram_size(&self) -> Option<usize> {
        // This is usually 1182 bytes, but we shouldn't document that without a doctest.
        let max_size = self.mtu as usize
            - 1                 // flags byte
            - self.rem_cid.len()
            - 4                 // worst-case packet number size
            - self.spaces[SpaceId::Data].crypto.as_ref().map_or_else(|| &self.zero_rtt_crypto.as_ref().unwrap().packet, |x| &x.packet.local).tag_len()
            - Datagram::SIZE_BOUND;
        let limit = self.peer_params.max_datagram_frame_size?.into_inner();
        Some(limit.min(max_size as u64) as usize)
    }
pub fn max_datagram_size ( & self ) -> Option < usize > { // This is usually 1182 bytes, but we shouldn't document that without a doctest. let max_size = self . mtu as usize - 1 // flags byte - self . rem_cid . len ( ) - 4 // worst-case packet number size - self . spaces [ SpaceId :: Data ] . crypto . as_ref ( ) . map_or_else ( | | & self . zero_rtt_crypto . as_ref ( ) . unwrap ( ) . packet , | x | & x . packet . local ) . tag_len ( ) - Datagram :: SIZE_BOUND ; let limit = self . peer_params . max_datagram_frame_size ? . into_inner ( ) ; Some ( limit . min ( max_size as u64 ) as usize ) }
Compute the maximum size of datagrams that may passed to `send_datagram`
Returns `None` if datagrams are unsupported by the peer or disabled locally.
Compute the maximum size of datagrams that may passed to ` send_datagram ` Returns ` None ` if datagrams are unsupported by the peer or disabled locally .
&self