pub struct Extension { /* private fields */ }Implementations§
Source§impl Extension
impl Extension
pub fn new(typ: ExtensionType, value: ExtensionValue) -> Extension
pub fn from_type(t: ExtensionType) -> Extension
pub fn from_bytes( bytes: &[u8], server: bool, ) -> Result<Vec<Extension>, RlsError>
pub fn extension_type(&self) -> &ExtensionType
pub fn supported_groups(&self) -> Option<&SupportedGroups>
pub fn signature_algorithms(&self) -> Option<&SignatureAlgorithms>
pub fn signature_algorithms_mut(&mut self) -> Option<&mut SignatureAlgorithms>
pub fn supported_versions(&self) -> Option<&SupportVersions>
pub fn supported_versions_mut(&mut self) -> Option<&mut SupportVersions>
pub fn supported_groups_mut(&mut self) -> Option<&mut SupportedGroups>
pub fn ex_point_formats(&self) -> Option<&EcPointFormats>
pub fn ex_point_formats_mut(&mut self) -> Option<&mut EcPointFormats>
pub fn len(&self, server: bool) -> usize
pub fn write_to<W>(self, writer: &mut W, server: bool)where
W: WriteExt,
pub fn set_server_name(&mut self, value: &str)
pub fn server_name(&self) -> Option<&ServerName>
pub fn alps(&self) -> Option<&ALPS>
pub fn alps_mut(&mut self) -> Option<&mut ALPS>
pub fn remove_tls13(&mut self)
pub fn remove_h2_alpn(&mut self)
pub fn add_h2_alpn(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnsafeUnpin for Extension
impl UnwindSafe for Extension
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