Enum wolfssl::IOCallbackResult
source · pub enum IOCallbackResult<T> {
Ok(T),
WouldBlock,
Err(Error),
}Expand description
Result type to be returned by methods on IOCallbacks
Variants§
Ok(T)
Success
WouldBlock
The I/O operation would block, this will surface to the
application as crate::Poll::PendingRead or crate::Poll::PendingWrite
Err(Error)
Any other error
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for IOCallbackResult<T>where
T: Freeze,
impl<T> !RefUnwindSafe for IOCallbackResult<T>
impl<T> Send for IOCallbackResult<T>where
T: Send,
impl<T> Sync for IOCallbackResult<T>where
T: Sync,
impl<T> Unpin for IOCallbackResult<T>where
T: Unpin,
impl<T> !UnwindSafe for IOCallbackResult<T>
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