Struct libpulse_binding::time::MicroSeconds [−][src]
pub struct MicroSeconds(pub u64);
Microseconds. This is an unsigned 64-bit type.
Methods
impl MicroSeconds[src]
impl MicroSecondspub fn is_valid(&self) -> bool[src]
pub fn is_valid(&self) -> boolpub 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 MicroSecondsimpl Clone for MicroSeconds[src]
impl Clone for MicroSecondsfn clone(&self) -> MicroSeconds[src]
fn clone(&self) -> MicroSecondsReturns 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 MicroSecondsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for MicroSeconds[src]
impl Default for MicroSecondsfn default() -> MicroSeconds[src]
fn default() -> MicroSecondsReturns the "default value" for a type. Read more
impl Eq for MicroSeconds[src]
impl Eq for MicroSecondsimpl PartialEq for MicroSeconds[src]
impl PartialEq for MicroSecondsfn eq(&self, other: &MicroSeconds) -> bool[src]
fn eq(&self, other: &MicroSeconds) -> boolThis 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) -> boolThis method tests for !=.
impl Ord for MicroSeconds[src]
impl Ord for MicroSecondsfn cmp(&self, other: &MicroSeconds) -> Ordering[src]
fn cmp(&self, other: &MicroSeconds) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for MicroSeconds[src]
impl PartialOrd for MicroSecondsfn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 MicroSecondstype Output = Self
The resulting type after applying the + operator.
fn add(self, other: Self) -> Self[src]
fn add(self, other: Self) -> SelfPerforms the + operation.
impl AddAssign for MicroSeconds[src]
impl AddAssign for MicroSecondsfn 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 MicroSecondstype Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Duration) -> Self[src]
fn add(self, rhs: Duration) -> SelfPerforms the + operation.
impl AddAssign<Duration> for MicroSeconds[src]
impl AddAssign<Duration> for MicroSecondsfn 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 MicroSecondstype Output = Self
The resulting type after applying the - operator.
fn sub(self, other: Self) -> Self[src]
fn sub(self, other: Self) -> SelfPerforms the - operation.
impl SubAssign for MicroSeconds[src]
impl SubAssign for MicroSecondsfn 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 MicroSecondstype Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: Duration) -> Self[src]
fn sub(self, rhs: Duration) -> SelfPerforms the - operation.
impl SubAssign<Duration> for MicroSeconds[src]
impl SubAssign<Duration> for MicroSecondsfn 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 MicroSecondstype Output = Self
The resulting type after applying the * operator.
fn mul(self, rhs: u32) -> Self[src]
fn mul(self, rhs: u32) -> SelfPerforms the * operation.
impl MulAssign<u32> for MicroSeconds[src]
impl MulAssign<u32> for MicroSecondsfn 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 MicroSecondstype Output = Self
The resulting type after applying the / operator.
fn div(self, rhs: u32) -> Self[src]
fn div(self, rhs: u32) -> SelfPerforms the / operation.
impl DivAssign<u32> for MicroSeconds[src]
impl DivAssign<u32> for MicroSecondsfn 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 MicroSecondstype Output = Self
The resulting type after applying the % operator.
fn rem(self, rhs: u32) -> Self[src]
fn rem(self, rhs: u32) -> SelfPerforms the % operation.
impl RemAssign<u32> for MicroSeconds[src]
impl RemAssign<u32> for MicroSecondsfn 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 MicroSecondsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Add<MicroSeconds> for MonotonicTs[src]
impl Add<MicroSeconds> for MonotonicTstype Output = Self
The resulting type after applying the + operator.
fn add(self, other: MicroSeconds) -> Self[src]
fn add(self, other: MicroSeconds) -> SelfPerforms the + operation.
impl AddAssign<MicroSeconds> for MonotonicTs[src]
impl AddAssign<MicroSeconds> for MonotonicTsfn 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 MonotonicTstype Output = Self
The resulting type after applying the - operator.
fn sub(self, other: MicroSeconds) -> Self[src]
fn sub(self, other: MicroSeconds) -> SelfPerforms the - operation.
impl SubAssign<MicroSeconds> for MonotonicTs[src]
impl SubAssign<MicroSeconds> for MonotonicTsfn 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 Timevaltype Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: MicroSeconds) -> Self[src]
fn add(self, rhs: MicroSeconds) -> SelfPerforms the + operation.
impl AddAssign<MicroSeconds> for Timeval[src]
impl AddAssign<MicroSeconds> for Timevalfn 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 Timevaltype Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: MicroSeconds) -> Self[src]
fn sub(self, rhs: MicroSeconds) -> SelfPerforms the - operation.
impl SubAssign<MicroSeconds> for Timeval[src]
impl SubAssign<MicroSeconds> for Timevalfn 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 UnixTstype Output = Self
The resulting type after applying the + operator.
fn add(self, other: MicroSeconds) -> Self[src]
fn add(self, other: MicroSeconds) -> SelfPerforms the + operation.
impl AddAssign<MicroSeconds> for UnixTs[src]
impl AddAssign<MicroSeconds> for UnixTsfn 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 UnixTstype Output = Self
The resulting type after applying the - operator.
fn sub(self, other: MicroSeconds) -> Self[src]
fn sub(self, other: MicroSeconds) -> SelfPerforms the - operation.
impl SubAssign<MicroSeconds> for UnixTs[src]
impl SubAssign<MicroSeconds> for UnixTsfn 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 MicroSecondsimpl From<MicroSeconds> for Timeval[src]
impl From<MicroSeconds> for Timevalfn from(t: MicroSeconds) -> Self[src]
fn from(t: MicroSeconds) -> SelfPerforms the conversion.
impl From<Duration> for MicroSeconds[src]
impl From<Duration> for MicroSecondsimpl From<MicroSeconds> for Duration[src]
impl From<MicroSeconds> for Durationfn from(t: MicroSeconds) -> Self[src]
fn from(t: MicroSeconds) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for MicroSeconds
impl Send for MicroSecondsimpl Sync for MicroSeconds
impl Sync for MicroSeconds