Struct rosrust::Duration[][src]

pub struct Duration {
    pub sec: i32,
    pub nsec: i32,
}

Fields

sec: i32nsec: i32

Implementations

impl Duration[src]

pub fn new() -> Duration[src]

pub fn from_nanos(t: i64) -> Duration[src]

pub fn from_seconds(sec: i32) -> Duration[src]

pub fn seconds(self) -> f64[src]

Trait Implementations

impl Add<Duration> for Time[src]

type Output = Time

The resulting type after applying the + operator.

impl Add<Duration> for Duration[src]

type Output = Duration

The resulting type after applying the + operator.

impl Clone for Duration[src]

impl Copy for Duration[src]

impl Debug for Duration[src]

impl Default for Duration[src]

impl<'de> Deserialize<'de> for Duration[src]

impl Eq for Duration[src]

impl From<Duration> for Duration[src]

impl Neg for Duration[src]

type Output = Duration

The resulting type after applying the - operator.

impl Ord for Duration[src]

impl PartialEq<Duration> for Duration[src]

impl PartialOrd<Duration> for Duration[src]

impl Serialize for Duration[src]

impl Sub<Duration> for Time[src]

type Output = Time

The resulting type after applying the - operator.

impl Sub<Duration> for Duration[src]

type Output = Duration

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any