#[repr(C)]pub struct TimerInfo<T: Timeline> {
pub options: u32,
pub deadline: Instant<T>,
pub slack: Duration<T>,
/* private fields */
}
Fields§
§options: u32
§deadline: Instant<T>
§slack: Duration<T>
Trait Implementations§
Source§impl<T: Timeline> FromBytes for TimerInfo<T>
impl<T: Timeline> FromBytes for TimerInfo<T>
Source§impl<T: Timeline> TryFromBytes for TimerInfo<T>
impl<T: Timeline> TryFromBytes for TimerInfo<T>
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl<T: Copy + Timeline> Copy for TimerInfo<T>
impl<T: Eq + Timeline> Eq for TimerInfo<T>
impl<T: Timeline> Immutable for TimerInfo<T>
impl<T: Timeline> StructuralPartialEq for TimerInfo<T>
Auto Trait Implementations§
impl<T> Freeze for TimerInfo<T>
impl<T> RefUnwindSafe for TimerInfo<T>where
T: RefUnwindSafe,
impl<T> Send for TimerInfo<T>where
T: Send,
impl<T> Sync for TimerInfo<T>where
T: Sync,
impl<T> Unpin for TimerInfo<T>where
T: Unpin,
impl<T> UnwindSafe for TimerInfo<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