pub struct QuicTransportParametersV1<'a> { /* private fields */ }Expand description
A checked borrowed view of present RFC 9000 version-1 transport parameters.
Implementations§
Source§impl<'a> QuicTransportParametersV1<'a>
impl<'a> QuicTransportParametersV1<'a>
Sourcepub const fn sender(self) -> QuicTransportParameterSender
pub const fn sender(self) -> QuicTransportParameterSender
Returns the endpoint role used for validation.
Sourcepub const fn iter(self) -> QuicTransportParameterIter<'a> ⓘ
pub const fn iter(self) -> QuicTransportParameterIter<'a> ⓘ
Returns a fresh iterator over the original raw parameter tuples.
Sourcepub fn validate_handshake(
self,
context: QuicTransportParameterHandshakeContext<'_>,
) -> Result<(), QuicTransportParameterHandshakeError>
pub fn validate_handshake( self, context: QuicTransportParameterHandshakeContext<'_>, ) -> Result<(), QuicTransportParameterHandshakeError>
Validates RFC 9000 section 7.3 connection-ID parameters against packet-derived context.
This checks only the packet consistency rules that require handshake context; construction of this type has already validated sender role and present parameter value layouts.
Trait Implementations§
Source§impl<'a> Clone for QuicTransportParametersV1<'a>
impl<'a> Clone for QuicTransportParametersV1<'a>
impl<'a> Copy for QuicTransportParametersV1<'a>
Source§impl<'a> Debug for QuicTransportParametersV1<'a>
impl<'a> Debug for QuicTransportParametersV1<'a>
impl<'a> Eq for QuicTransportParametersV1<'a>
Source§impl<'a> PartialEq for QuicTransportParametersV1<'a>
impl<'a> PartialEq for QuicTransportParametersV1<'a>
impl<'a> StructuralPartialEq for QuicTransportParametersV1<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuicTransportParametersV1<'a>
impl<'a> RefUnwindSafe for QuicTransportParametersV1<'a>
impl<'a> Send for QuicTransportParametersV1<'a>
impl<'a> Sync for QuicTransportParametersV1<'a>
impl<'a> Unpin for QuicTransportParametersV1<'a>
impl<'a> UnsafeUnpin for QuicTransportParametersV1<'a>
impl<'a> UnwindSafe for QuicTransportParametersV1<'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