[][src]Trait sequoia_openpgp::conversions::Duration

pub trait Duration {
    fn from_pgp(_: u32) -> Self;
fn to_pgp(&self) -> Result<u32>;
fn canonicalize(self) -> Self; }

Conversions for OpenPGP durations.

Required methods

fn from_pgp(_: u32) -> Self

Converts an OpenPGP duration to ISO 8601 time duration.

fn to_pgp(&self) -> Result<u32>

Converts ISO 8601 time duration to an OpenPGP duration.

fn canonicalize(self) -> Self

Strips off any subseconds that OpenPGP cannot represent.

Loading content...

Implementations on Foreign Types

impl Duration for Duration[src]

Loading content...

Implementors

Loading content...