pub enum Poll<T> {
PendingWrite,
PendingRead,
Ready(T),
AppData(Bytes),
}
Expand description
The Result::Ok
for a non-blocking operation.
Variants§
PendingWrite
Underlying IO operations are still ongoing. No output has been generated yet. A write is pending
PendingRead
Underlying IO operations are still ongoing. No output has been generated yet. A write is pending
Ready(T)
An output has been generated.
AppData(Bytes)
When under secure renegotiation, WolfSSL can now sometimes emit an
APP_DATA_READY
code, meaning that it has received application data
during this renegotiation. This variant contains this information.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Poll<T>
impl<T> RefUnwindSafe for Poll<T>where
T: RefUnwindSafe,
impl<T> Send for Poll<T>where
T: Send,
impl<T> Sync for Poll<T>where
T: Sync,
impl<T> Unpin for Poll<T>where
T: Unpin,
impl<T> UnwindSafe for Poll<T>where
T: UnwindSafe,
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