Enum nix::poll_timeout::PollTimeoutTryFromError
source · pub enum PollTimeoutTryFromError {
TooNegative,
TooPositive,
}
Expand description
Error type for integer conversions into PollTimeout
.
Variants§
TooNegative
Passing a value less than -1 is invalid on some systems, see https://man.freebsd.org/cgi/man.cgi?poll#end.
TooPositive
Passing a value greater than i32::MAX
is invalid.
Trait Implementations§
source§impl Clone for PollTimeoutTryFromError
impl Clone for PollTimeoutTryFromError
source§fn clone(&self) -> PollTimeoutTryFromError
fn clone(&self) -> PollTimeoutTryFromError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PollTimeoutTryFromError
impl Debug for PollTimeoutTryFromError
source§impl Display for PollTimeoutTryFromError
impl Display for PollTimeoutTryFromError
source§impl Error for PollTimeoutTryFromError
impl Error for PollTimeoutTryFromError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl PartialEq for PollTimeoutTryFromError
impl PartialEq for PollTimeoutTryFromError
source§fn eq(&self, other: &PollTimeoutTryFromError) -> bool
fn eq(&self, other: &PollTimeoutTryFromError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PollTimeoutTryFromError
impl Eq for PollTimeoutTryFromError
impl StructuralPartialEq for PollTimeoutTryFromError
Auto Trait Implementations§
impl Freeze for PollTimeoutTryFromError
impl RefUnwindSafe for PollTimeoutTryFromError
impl Send for PollTimeoutTryFromError
impl Sync for PollTimeoutTryFromError
impl Unpin for PollTimeoutTryFromError
impl UnwindSafe for PollTimeoutTryFromError
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