[][src]Struct tcn::Report

pub struct Report { /* fields omitted */ }

A report of potential exposure.

Methods

impl Report[src]

pub fn memo_type(&self) -> MemoType[src]

Get the type of the memo field.

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

Get the memo data.

pub fn temporary_contact_numbers(
    &self
) -> impl Iterator<Item = TemporaryContactNumber>
[src]

Return an iterator over all temporary contact numbers included in the report.

impl Report[src]

pub fn read<R: Read>(reader: R) -> Result<Report, Error>[src]

Try to read a Report from a generic io::Reader.

pub fn write<W: Write>(&self, writer: W) -> Result<(), Error>[src]

Try to write a Report into a generic io::Writeer.

This method fails only when the memo data is too long or in the event of an underlying I/O error.

Trait Implementations

impl Clone for Report[src]

impl Debug for Report[src]

Auto Trait Implementations

impl RefUnwindSafe for Report

impl Send for Report

impl Sync for Report

impl Unpin for Report

impl UnwindSafe for Report

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