pub struct ClientSupportedVersions<'a> { /* private fields */ }Expand description
Ordered protocol versions from a ClientHello supported_versions extension.
Implementations§
Source§impl<'a> ClientSupportedVersions<'a>
impl<'a> ClientSupportedVersions<'a>
Sourcepub fn iter(&self) -> impl Iterator<Item = TlsProtocolVersion> + 'a
pub fn iter(&self) -> impl Iterator<Item = TlsProtocolVersion> + 'a
Returns versions in their original wire order.
Sourcepub fn highest(&self) -> Option<TlsProtocolVersion>
pub fn highest(&self) -> Option<TlsProtocolVersion>
Returns the numerically highest non-GREASE offered version.
Trait Implementations§
Source§impl<'a> Clone for ClientSupportedVersions<'a>
impl<'a> Clone for ClientSupportedVersions<'a>
impl<'a> Copy for ClientSupportedVersions<'a>
Source§impl<'a> Debug for ClientSupportedVersions<'a>
impl<'a> Debug for ClientSupportedVersions<'a>
impl<'a> Eq for ClientSupportedVersions<'a>
Source§impl<'a> PartialEq for ClientSupportedVersions<'a>
impl<'a> PartialEq for ClientSupportedVersions<'a>
impl<'a> StructuralPartialEq for ClientSupportedVersions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClientSupportedVersions<'a>
impl<'a> RefUnwindSafe for ClientSupportedVersions<'a>
impl<'a> Send for ClientSupportedVersions<'a>
impl<'a> Sync for ClientSupportedVersions<'a>
impl<'a> Unpin for ClientSupportedVersions<'a>
impl<'a> UnsafeUnpin for ClientSupportedVersions<'a>
impl<'a> UnwindSafe for ClientSupportedVersions<'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