pub enum Event {
CallAfter(u32),
ApplicationData,
HandshakeFinished,
Disconnect,
None,
}
Expand description
TLS events.
These are events that need to be handled externally by your firmware, such as new application data.
This is returned by Client::process
.
Variants§
CallAfter(u32)
A hint to call Client::process
after this many seconds have elapsed.
This is just a hint and does not have to be used.
The inner value may increase or decreases with successive calls to
Client::process
.
This is used for state timeout tracking.
ApplicationData
New application data was received.
Calling Client::reader
will return a TlsReader
to read the
data.
HandshakeFinished
The handshake finished, and you can read and write application data.
Disconnect
Expected disconnection.
None
No event occurred, the client ready and idle.
Trait Implementations§
source§impl PartialEq for Event
impl PartialEq for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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