Struct libpulse_binding::time::MicroSeconds [−][src]
pub struct MicroSeconds(pub u64);
Microseconds. This is an unsigned 64-bit type.
Methods
impl MicroSeconds
[src]
impl MicroSeconds
pub fn is_valid(&self) -> bool
[src]
pub fn is_valid(&self) -> bool
pub fn checked_add(self, other: Self) -> Option<Self>
[src]
pub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add_duration(self, rhs: Duration) -> Option<Self>
[src]
pub fn checked_add_duration(self, rhs: Duration) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
[src]
pub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub_duration(self, rhs: Duration) -> Option<Self>
[src]
pub fn checked_sub_duration(self, rhs: Duration) -> Option<Self>
pub fn checked_mul(self, rhs: u32) -> Option<Self>
[src]
pub fn checked_mul(self, rhs: u32) -> Option<Self>
pub fn checked_div(self, rhs: u32) -> Option<Self>
[src]
pub fn checked_div(self, rhs: u32) -> Option<Self>
pub fn checked_rem(self, rhs: u32) -> Option<Self>
[src]
pub fn checked_rem(self, rhs: u32) -> Option<Self>
Trait Implementations
impl Copy for MicroSeconds
[src]
impl Copy for MicroSeconds
impl Clone for MicroSeconds
[src]
impl Clone for MicroSeconds
fn clone(&self) -> MicroSeconds
[src]
fn clone(&self) -> MicroSeconds
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for MicroSeconds
[src]
impl Debug for MicroSeconds
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for MicroSeconds
[src]
impl Default for MicroSeconds
fn default() -> MicroSeconds
[src]
fn default() -> MicroSeconds
Returns the "default value" for a type. Read more
impl Eq for MicroSeconds
[src]
impl Eq for MicroSeconds
impl PartialEq for MicroSeconds
[src]
impl PartialEq for MicroSeconds
fn eq(&self, other: &MicroSeconds) -> bool
[src]
fn eq(&self, other: &MicroSeconds) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MicroSeconds) -> bool
[src]
fn ne(&self, other: &MicroSeconds) -> bool
This method tests for !=
.
impl Ord for MicroSeconds
[src]
impl Ord for MicroSeconds
fn cmp(&self, other: &MicroSeconds) -> Ordering
[src]
fn cmp(&self, other: &MicroSeconds) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for MicroSeconds
[src]
impl PartialOrd for MicroSeconds
fn partial_cmp(&self, other: &MicroSeconds) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &MicroSeconds) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &MicroSeconds) -> bool
[src]
fn lt(&self, other: &MicroSeconds) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &MicroSeconds) -> bool
[src]
fn le(&self, other: &MicroSeconds) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &MicroSeconds) -> bool
[src]
fn gt(&self, other: &MicroSeconds) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &MicroSeconds) -> bool
[src]
fn ge(&self, other: &MicroSeconds) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Add for MicroSeconds
[src]
impl Add for MicroSeconds
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
fn add(self, other: Self) -> Self
Performs the +
operation.
impl AddAssign for MicroSeconds
[src]
impl AddAssign for MicroSeconds
fn add_assign(&mut self, rhs: Self)
[src]
fn add_assign(&mut self, rhs: Self)
Performs the +=
operation.
impl Add<Duration> for MicroSeconds
[src]
impl Add<Duration> for MicroSeconds
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Duration) -> Self
[src]
fn add(self, rhs: Duration) -> Self
Performs the +
operation.
impl AddAssign<Duration> for MicroSeconds
[src]
impl AddAssign<Duration> for MicroSeconds
fn add_assign(&mut self, rhs: Duration)
[src]
fn add_assign(&mut self, rhs: Duration)
Performs the +=
operation.
impl Sub for MicroSeconds
[src]
impl Sub for MicroSeconds
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
fn sub(self, other: Self) -> Self
Performs the -
operation.
impl SubAssign for MicroSeconds
[src]
impl SubAssign for MicroSeconds
fn sub_assign(&mut self, rhs: Self)
[src]
fn sub_assign(&mut self, rhs: Self)
Performs the -=
operation.
impl Sub<Duration> for MicroSeconds
[src]
impl Sub<Duration> for MicroSeconds
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Duration) -> Self
[src]
fn sub(self, rhs: Duration) -> Self
Performs the -
operation.
impl SubAssign<Duration> for MicroSeconds
[src]
impl SubAssign<Duration> for MicroSeconds
fn sub_assign(&mut self, rhs: Duration)
[src]
fn sub_assign(&mut self, rhs: Duration)
Performs the -=
operation.
impl Mul<u32> for MicroSeconds
[src]
impl Mul<u32> for MicroSeconds
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> Self
[src]
fn mul(self, rhs: u32) -> Self
Performs the *
operation.
impl MulAssign<u32> for MicroSeconds
[src]
impl MulAssign<u32> for MicroSeconds
fn mul_assign(&mut self, rhs: u32)
[src]
fn mul_assign(&mut self, rhs: u32)
Performs the *=
operation.
impl Div<u32> for MicroSeconds
[src]
impl Div<u32> for MicroSeconds
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: u32) -> Self
[src]
fn div(self, rhs: u32) -> Self
Performs the /
operation.
impl DivAssign<u32> for MicroSeconds
[src]
impl DivAssign<u32> for MicroSeconds
fn div_assign(&mut self, rhs: u32)
[src]
fn div_assign(&mut self, rhs: u32)
Performs the /=
operation.
impl Rem<u32> for MicroSeconds
[src]
impl Rem<u32> for MicroSeconds
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: u32) -> Self
[src]
fn rem(self, rhs: u32) -> Self
Performs the %
operation.
impl RemAssign<u32> for MicroSeconds
[src]
impl RemAssign<u32> for MicroSeconds
fn rem_assign(&mut self, rhs: u32)
[src]
fn rem_assign(&mut self, rhs: u32)
Performs the %=
operation.
impl Display for MicroSeconds
[src]
impl Display for MicroSeconds
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Add<MicroSeconds> for MonotonicTs
[src]
impl Add<MicroSeconds> for MonotonicTs
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: MicroSeconds) -> Self
[src]
fn add(self, other: MicroSeconds) -> Self
Performs the +
operation.
impl AddAssign<MicroSeconds> for MonotonicTs
[src]
impl AddAssign<MicroSeconds> for MonotonicTs
fn add_assign(&mut self, rhs: MicroSeconds)
[src]
fn add_assign(&mut self, rhs: MicroSeconds)
Performs the +=
operation.
impl Sub<MicroSeconds> for MonotonicTs
[src]
impl Sub<MicroSeconds> for MonotonicTs
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: MicroSeconds) -> Self
[src]
fn sub(self, other: MicroSeconds) -> Self
Performs the -
operation.
impl SubAssign<MicroSeconds> for MonotonicTs
[src]
impl SubAssign<MicroSeconds> for MonotonicTs
fn sub_assign(&mut self, rhs: MicroSeconds)
[src]
fn sub_assign(&mut self, rhs: MicroSeconds)
Performs the -=
operation.
impl Add<MicroSeconds> for Timeval
[src]
impl Add<MicroSeconds> for Timeval
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: MicroSeconds) -> Self
[src]
fn add(self, rhs: MicroSeconds) -> Self
Performs the +
operation.
impl AddAssign<MicroSeconds> for Timeval
[src]
impl AddAssign<MicroSeconds> for Timeval
fn add_assign(&mut self, rhs: MicroSeconds)
[src]
fn add_assign(&mut self, rhs: MicroSeconds)
Performs the +=
operation.
impl Sub<MicroSeconds> for Timeval
[src]
impl Sub<MicroSeconds> for Timeval
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: MicroSeconds) -> Self
[src]
fn sub(self, rhs: MicroSeconds) -> Self
Performs the -
operation.
impl SubAssign<MicroSeconds> for Timeval
[src]
impl SubAssign<MicroSeconds> for Timeval
fn sub_assign(&mut self, rhs: MicroSeconds)
[src]
fn sub_assign(&mut self, rhs: MicroSeconds)
Performs the -=
operation.
impl Add<MicroSeconds> for UnixTs
[src]
impl Add<MicroSeconds> for UnixTs
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: MicroSeconds) -> Self
[src]
fn add(self, other: MicroSeconds) -> Self
Performs the +
operation.
impl AddAssign<MicroSeconds> for UnixTs
[src]
impl AddAssign<MicroSeconds> for UnixTs
fn add_assign(&mut self, rhs: MicroSeconds)
[src]
fn add_assign(&mut self, rhs: MicroSeconds)
Performs the +=
operation.
impl Sub<MicroSeconds> for UnixTs
[src]
impl Sub<MicroSeconds> for UnixTs
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: MicroSeconds) -> Self
[src]
fn sub(self, other: MicroSeconds) -> Self
Performs the -
operation.
impl SubAssign<MicroSeconds> for UnixTs
[src]
impl SubAssign<MicroSeconds> for UnixTs
fn sub_assign(&mut self, rhs: MicroSeconds)
[src]
fn sub_assign(&mut self, rhs: MicroSeconds)
Performs the -=
operation.
impl From<Timeval> for MicroSeconds
[src]
impl From<Timeval> for MicroSeconds
impl From<MicroSeconds> for Timeval
[src]
impl From<MicroSeconds> for Timeval
fn from(t: MicroSeconds) -> Self
[src]
fn from(t: MicroSeconds) -> Self
Performs the conversion.
impl From<Duration> for MicroSeconds
[src]
impl From<Duration> for MicroSeconds
impl From<MicroSeconds> for Duration
[src]
impl From<MicroSeconds> for Duration
fn from(t: MicroSeconds) -> Self
[src]
fn from(t: MicroSeconds) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for MicroSeconds
impl Send for MicroSeconds
impl Sync for MicroSeconds
impl Sync for MicroSeconds