pub struct QuicTransportParameters<'a> { /* private fields */ }Expand description
A complete validated borrowed QUIC transport-parameter extension payload.
Implementations§
Source§impl<'a> QuicTransportParameters<'a>
impl<'a> QuicTransportParameters<'a>
Sourcepub fn parse(bytes: &'a [u8]) -> Result<Self, QuicTransportParameterParseError>
pub fn parse(bytes: &'a [u8]) -> Result<Self, QuicTransportParameterParseError>
Parses and validates a complete transport-parameter extension payload.
Sourcepub fn validate_v1(
self,
sender: QuicTransportParameterSender,
) -> Result<QuicTransportParametersV1<'a>, QuicTransportParameterSemanticError>
pub fn validate_v1( self, sender: QuicTransportParameterSender, ) -> Result<QuicTransportParametersV1<'a>, QuicTransportParameterSemanticError>
Validates all present known parameters against RFC 9000 version-1 role and value rules.
Sourcepub const fn iter(self) -> QuicTransportParameterIter<'a> ⓘ
pub const fn iter(self) -> QuicTransportParameterIter<'a> ⓘ
Returns a fresh iterator over this already validated extension payload.
Trait Implementations§
Source§impl<'a> Clone for QuicTransportParameters<'a>
impl<'a> Clone for QuicTransportParameters<'a>
impl<'a> Copy for QuicTransportParameters<'a>
Source§impl<'a> Debug for QuicTransportParameters<'a>
impl<'a> Debug for QuicTransportParameters<'a>
impl<'a> Eq for QuicTransportParameters<'a>
Source§impl<'a> PartialEq for QuicTransportParameters<'a>
impl<'a> PartialEq for QuicTransportParameters<'a>
impl<'a> StructuralPartialEq for QuicTransportParameters<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuicTransportParameters<'a>
impl<'a> RefUnwindSafe for QuicTransportParameters<'a>
impl<'a> Send for QuicTransportParameters<'a>
impl<'a> Sync for QuicTransportParameters<'a>
impl<'a> Unpin for QuicTransportParameters<'a>
impl<'a> UnsafeUnpin for QuicTransportParameters<'a>
impl<'a> UnwindSafe for QuicTransportParameters<'a>
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