#[non_exhaustive]pub enum PostError {
Full,
WrongWorker,
ServerStopped,
}Expand description
Why a post was refused.
assert_eq!(net_io::PostError::Full.to_string(), "the worker's completion queue is full");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Full
The ring is full; the poster decides what to do (for example answer 503).
WrongWorker
The connection belongs to another worker.
ServerStopped
The server has stopped.
Trait Implementations§
impl Copy for PostError
impl Eq for PostError
Source§impl Error for PostError
impl Error for PostError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for PostError
Auto Trait Implementations§
impl Freeze for PostError
impl RefUnwindSafe for PostError
impl Send for PostError
impl Sync for PostError
impl Unpin for PostError
impl UnsafeUnpin for PostError
impl UnwindSafe for PostError
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