pub struct NanoSeconds(/* private fields */);
Expand description
A number of nanoseconds
Implementations§
Source§impl NanoSeconds
impl NanoSeconds
Sourcepub fn new(nanos: u32) -> Result<Self, ErrTooManyNanos>
pub fn new(nanos: u32) -> Result<Self, ErrTooManyNanos>
Try to turn a u32 into a NanoSeconds
. Only values less than one second are valid.
Auto Trait Implementations§
impl Freeze for NanoSeconds
impl RefUnwindSafe for NanoSeconds
impl Send for NanoSeconds
impl Sync for NanoSeconds
impl Unpin for NanoSeconds
impl UnwindSafe for NanoSeconds
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