[][src]Struct bolt_proto::value::Duration

pub struct Duration { /* fields omitted */ }

Implementations

impl Duration[src]

pub fn new(months: i64, days: i64, seconds: i64, nanos: i32) -> Self[src]

pub fn months(&self) -> i64[src]

pub fn days(&self) -> i64[src]

pub fn seconds(&self) -> i64[src]

pub fn nanos(&self) -> i32[src]

Trait Implementations

impl Clone for Duration[src]

impl Debug for Duration[src]

impl Deserialize for Duration[src]

impl Eq for Duration[src]

impl From<Duration> for Value[src]

impl From<Duration> for Duration[src]

impl Hash for Duration[src]

impl Marker for Duration[src]

impl PartialEq<Duration> for Duration[src]

impl Serialize for Duration[src]

impl Signature for Duration[src]

impl StructuralEq for Duration[src]

impl StructuralPartialEq for Duration[src]

impl TryFrom<Arc<Mutex<Bytes>>> for Duration[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Duration[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryInto<Bytes> for Duration[src]

type Error = Error

The type returned in the event of a conversion error.

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> 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.