pub struct State {
pub peer_certificates: Vec<Vec<u8>>,
pub identity_hint: Vec<u8>,
/* private fields */
}Fields§
§peer_certificates: Vec<Vec<u8>>§identity_hint: Vec<u8>Implementations§
Source§impl State
impl State
pub fn init_cipher_suite(&mut self) -> Result<()>
pub fn marshal_binary(&self) -> Result<Vec<u8>>
pub fn unmarshal_binary(&mut self, data: &[u8]) -> Result<()>
pub fn srtp_protection_profile(&self) -> SrtpProtectionProfile
pub fn is_client(&self) -> bool
pub fn cipher_suite(&self) -> Option<&dyn CipherSuite>
Trait Implementations§
Source§impl KeyingMaterialExporter for State
impl KeyingMaterialExporter for State
Source§fn export_keying_material(
&self,
label: &str,
context: &[u8],
length: usize,
) -> Result<Vec<u8>>
fn export_keying_material( &self, label: &str, context: &[u8], length: usize, ) -> Result<Vec<u8>>
export_keying_material returns length bytes of exported key material in a new slice as defined in RFC 5705. This allows protocols to use DTLS for key establishment, but then use some of the keying material for their own purposes
Auto Trait Implementations§
impl Freeze for State
impl !RefUnwindSafe for State
impl !Send for State
impl !Sync for State
impl Unpin for State
impl !UnwindSafe for State
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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