[][src]Struct contact_tracing::Rpi

pub struct Rpi { /* fields omitted */ }

A Rolling Proximity Identifier.

Methods

impl Rpi[src]

pub fn for_timestamp(tk: &TracingKey, timestamp: &DateTime<Utc>) -> Rpi[src]

Returns the RPI for a timestamp directly from a tracing key.

pub fn for_now(tk: &TracingKey) -> Rpi[src]

Returns the RPI that is for the current time interval.

pub fn from_bytes(b: &[u8]) -> Result<Rpi, InvalidRpi>[src]

Creates a RPI from raw bytes.

pub fn as_bytes(&self) -> &[u8][src]

Returns the bytes behind the RPI

Trait Implementations

impl Clone for Rpi[src]

impl Copy for Rpi[src]

impl Debug for Rpi[src]

impl Default for Rpi[src]

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

impl Display for Rpi[src]

impl Eq for Rpi[src]

impl FromStr for Rpi[src]

type Err = InvalidRpi

The associated error which can be returned from parsing.

impl Hash for Rpi[src]

impl Ord for Rpi[src]

impl PartialEq<Rpi> for Rpi[src]

impl PartialOrd<Rpi> for Rpi[src]

impl Serialize for Rpi[src]

impl StructuralEq for Rpi[src]

impl StructuralPartialEq for Rpi[src]

Auto Trait Implementations

impl RefUnwindSafe for Rpi

impl Send for Rpi

impl Sync for Rpi

impl Unpin for Rpi

impl UnwindSafe for Rpi

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,