Struct libpulse_binding::time::MicroSeconds
source · pub struct MicroSeconds(pub u64);
Expand description
Microseconds. This is an unsigned 64-bit type.
Tuple Fields
0: u64
Implementations
sourceimpl MicroSeconds
impl MicroSeconds
pub fn is_valid(&self) -> bool
pub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add_duration(self, rhs: Duration) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub_duration(self, rhs: Duration) -> Option<Self>
pub fn checked_mul(self, rhs: u32) -> Option<Self>
pub fn checked_div(self, rhs: u32) -> Option<Self>
pub fn checked_rem(self, rhs: u32) -> Option<Self>
Trait Implementations
sourceimpl Add<Duration> for MicroSeconds
impl Add<Duration> for MicroSeconds
sourceimpl Add<MicroSeconds> for MicroSeconds
impl Add<MicroSeconds> for MicroSeconds
type Output = MicroSeconds
type Output = MicroSeconds
The resulting type after applying the
+
operator.sourceimpl Add<MicroSeconds> for MonotonicTs
impl Add<MicroSeconds> for MonotonicTs
type Output = MonotonicTs
type Output = MonotonicTs
The resulting type after applying the
+
operator.sourcefn add(self, other: MicroSeconds) -> Self
fn add(self, other: MicroSeconds) -> Self
Performs the
+
operation. Read moresourceimpl Add<MicroSeconds> for Timeval
impl Add<MicroSeconds> for Timeval
sourceimpl Add<MicroSeconds> for UnixTs
impl Add<MicroSeconds> for UnixTs
sourceimpl AddAssign<Duration> for MicroSeconds
impl AddAssign<Duration> for MicroSeconds
sourcefn add_assign(&mut self, rhs: Duration)
fn add_assign(&mut self, rhs: Duration)
Performs the
+=
operation. Read moresourceimpl AddAssign<MicroSeconds> for MicroSeconds
impl AddAssign<MicroSeconds> for MicroSeconds
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresourceimpl AddAssign<MicroSeconds> for MonotonicTs
impl AddAssign<MicroSeconds> for MonotonicTs
sourcefn add_assign(&mut self, rhs: MicroSeconds)
fn add_assign(&mut self, rhs: MicroSeconds)
Performs the
+=
operation. Read moresourceimpl AddAssign<MicroSeconds> for Timeval
impl AddAssign<MicroSeconds> for Timeval
sourcefn add_assign(&mut self, rhs: MicroSeconds)
fn add_assign(&mut self, rhs: MicroSeconds)
Performs the
+=
operation. Read moresourceimpl AddAssign<MicroSeconds> for UnixTs
impl AddAssign<MicroSeconds> for UnixTs
sourcefn add_assign(&mut self, rhs: MicroSeconds)
fn add_assign(&mut self, rhs: MicroSeconds)
Performs the
+=
operation. Read moresourceimpl Clone for MicroSeconds
impl Clone for MicroSeconds
sourcefn clone(&self) -> MicroSeconds
fn clone(&self) -> MicroSeconds
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MicroSeconds
impl Debug for MicroSeconds
sourceimpl Default for MicroSeconds
impl Default for MicroSeconds
sourcefn default() -> MicroSeconds
fn default() -> MicroSeconds
Returns the “default value” for a type. Read more
sourceimpl Display for MicroSeconds
impl Display for MicroSeconds
sourceimpl Div<u32> for MicroSeconds
impl Div<u32> for MicroSeconds
sourceimpl DivAssign<u32> for MicroSeconds
impl DivAssign<u32> for MicroSeconds
sourcefn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
Performs the
/=
operation. Read moresourceimpl From<Duration> for MicroSeconds
impl From<Duration> for MicroSeconds
sourceimpl From<MicroSeconds> for Duration
impl From<MicroSeconds> for Duration
sourcefn from(t: MicroSeconds) -> Self
fn from(t: MicroSeconds) -> Self
Converts to this type from the input type.
sourceimpl From<MicroSeconds> for Timeval
impl From<MicroSeconds> for Timeval
sourcefn from(t: MicroSeconds) -> Self
fn from(t: MicroSeconds) -> Self
Converts to this type from the input type.
sourceimpl From<Timeval> for MicroSeconds
impl From<Timeval> for MicroSeconds
sourceimpl Mul<u32> for MicroSeconds
impl Mul<u32> for MicroSeconds
sourceimpl MulAssign<u32> for MicroSeconds
impl MulAssign<u32> for MicroSeconds
sourcefn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
Performs the
*=
operation. Read moresourceimpl Ord for MicroSeconds
impl Ord for MicroSeconds
sourcefn cmp(&self, other: &MicroSeconds) -> Ordering
fn cmp(&self, other: &MicroSeconds) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MicroSeconds> for MicroSeconds
impl PartialEq<MicroSeconds> for MicroSeconds
sourcefn eq(&self, other: &MicroSeconds) -> bool
fn eq(&self, other: &MicroSeconds) -> bool
sourceimpl PartialOrd<MicroSeconds> for MicroSeconds
impl PartialOrd<MicroSeconds> for MicroSeconds
sourcefn partial_cmp(&self, other: &MicroSeconds) -> Option<Ordering>
fn partial_cmp(&self, other: &MicroSeconds) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Rem<u32> for MicroSeconds
impl Rem<u32> for MicroSeconds
sourceimpl RemAssign<u32> for MicroSeconds
impl RemAssign<u32> for MicroSeconds
sourcefn rem_assign(&mut self, rhs: u32)
fn rem_assign(&mut self, rhs: u32)
Performs the
%=
operation. Read moresourceimpl Sub<Duration> for MicroSeconds
impl Sub<Duration> for MicroSeconds
sourceimpl Sub<MicroSeconds> for MicroSeconds
impl Sub<MicroSeconds> for MicroSeconds
type Output = MicroSeconds
type Output = MicroSeconds
The resulting type after applying the
-
operator.sourceimpl Sub<MicroSeconds> for MonotonicTs
impl Sub<MicroSeconds> for MonotonicTs
type Output = MonotonicTs
type Output = MonotonicTs
The resulting type after applying the
-
operator.sourcefn sub(self, other: MicroSeconds) -> Self
fn sub(self, other: MicroSeconds) -> Self
Performs the
-
operation. Read moresourceimpl Sub<MicroSeconds> for Timeval
impl Sub<MicroSeconds> for Timeval
sourceimpl Sub<MicroSeconds> for UnixTs
impl Sub<MicroSeconds> for UnixTs
sourceimpl SubAssign<Duration> for MicroSeconds
impl SubAssign<Duration> for MicroSeconds
sourcefn sub_assign(&mut self, rhs: Duration)
fn sub_assign(&mut self, rhs: Duration)
Performs the
-=
operation. Read moresourceimpl SubAssign<MicroSeconds> for MicroSeconds
impl SubAssign<MicroSeconds> for MicroSeconds
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moresourceimpl SubAssign<MicroSeconds> for MonotonicTs
impl SubAssign<MicroSeconds> for MonotonicTs
sourcefn sub_assign(&mut self, rhs: MicroSeconds)
fn sub_assign(&mut self, rhs: MicroSeconds)
Performs the
-=
operation. Read moresourceimpl SubAssign<MicroSeconds> for Timeval
impl SubAssign<MicroSeconds> for Timeval
sourcefn sub_assign(&mut self, rhs: MicroSeconds)
fn sub_assign(&mut self, rhs: MicroSeconds)
Performs the
-=
operation. Read moresourceimpl SubAssign<MicroSeconds> for UnixTs
impl SubAssign<MicroSeconds> for UnixTs
sourcefn sub_assign(&mut self, rhs: MicroSeconds)
fn sub_assign(&mut self, rhs: MicroSeconds)
Performs the
-=
operation. Read moreimpl Copy for MicroSeconds
impl Eq for MicroSeconds
impl StructuralEq for MicroSeconds
impl StructuralPartialEq for MicroSeconds
Auto Trait Implementations
impl RefUnwindSafe for MicroSeconds
impl Send for MicroSeconds
impl Sync for MicroSeconds
impl Unpin for MicroSeconds
impl UnwindSafe for MicroSeconds
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more