Struct PollTimeout

struct PollTimeout(_)

PollTimeout argument for polling.

Implementations

impl PollTimeout

fn is_none(self: &Self) -> bool

Returns if self equals PollTimeout::NONE.

fn is_some(self: &Self) -> bool

Returns if self does not equal PollTimeout::NONE.

fn as_millis(self: &Self) -> Option<u32>

Returns the timeout in milliseconds if there is some, otherwise returns None.

fn duration(self: &Self) -> Option<Duration>

Returns the timeout as a Duration if there is some, otherwise returns None.

impl Clone for PollTimeout

fn clone(self: &Self) -> PollTimeout

impl Copy for PollTimeout

impl Debug for PollTimeout

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for PollTimeout

impl Freeze for PollTimeout

impl From for PollTimeout

fn from(x: u16) -> Self

impl From for PollTimeout

fn from(x: u8) -> Self

impl Ord for PollTimeout

fn cmp(self: &Self, other: &PollTimeout) -> Ordering

impl PartialEq for PollTimeout

fn eq(self: &Self, other: &PollTimeout) -> bool

impl PartialOrd for PollTimeout

fn partial_cmp(self: &Self, other: &PollTimeout) -> Option<Ordering>

impl RefUnwindSafe for PollTimeout

impl Send for PollTimeout

impl StructuralPartialEq for PollTimeout

impl Sync for PollTimeout

impl TryFrom for PollTimeout

fn try_from(x: u128) -> Result<Self, <Self as >::Error>

impl TryFrom for PollTimeout

fn try_from(x: i32) -> Result<Self, <Self as >::Error>

impl TryFrom for PollTimeout

fn try_from(x: u64) -> Result<Self, <Self as >::Error>

impl TryFrom for PollTimeout

fn try_from(x: i16) -> Result<Self, <Self as >::Error>

impl TryFrom for PollTimeout

fn try_from(x: u32) -> Result<Self, <Self as >::Error>

impl TryFrom for PollTimeout

fn try_from(x: i8) -> Result<Self, <Self as >::Error>

impl TryFrom for PollTimeout

fn try_from(x: i128) -> Result<Self, <Self as >::Error>

impl TryFrom for PollTimeout

fn try_from(x: Duration) -> Result<Self, <Self as >::Error>

impl TryFrom for PollTimeout

fn try_from(x: i64) -> Result<Self, <Self as >::Error>

impl Unpin for PollTimeout

impl UnsafeUnpin for PollTimeout

impl UnwindSafe for PollTimeout

impl<T> Any for PollTimeout

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PollTimeout

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PollTimeout

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for PollTimeout

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for PollTimeout

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for PollTimeout

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for PollTimeout

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PollTimeout

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PollTimeout

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<T: Into<PollTimeout>> From for PollTimeout

fn from(x: Option<T>) -> Self