pub struct DTLSConn { /* private fields */ }Implementations§
source§impl DTLSConn
impl DTLSConn
pub fn new( handshake_config: Arc<HandshakeConfig>, is_client: bool, initial_state: Option<State> ) -> Self
pub fn incoming_application_data(&mut self) -> Option<BytesMut>
pub fn outgoing_raw_packet(&mut self) -> Option<BytesMut>
pub fn write(&mut self, p: &[u8]) -> Result<()>
pub fn close(&mut self)
sourcepub fn connection_state(&self) -> &State
pub fn connection_state(&self) -> &State
connection_state returns basic DTLS details about the connection.
Note that this replaced the Export function of v1.
pub fn read(&mut self, buf: &[u8]) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for DTLSConn
impl !Send for DTLSConn
impl !Sync for DTLSConn
impl Unpin for DTLSConn
impl !UnwindSafe for DTLSConn
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