[−][src]Struct tcn::Report
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]
&self
) -> impl Iterator<Item = TemporaryContactNumber>
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::Read
er.
pub fn write<W: Write>(&self, writer: W) -> Result<(), Error>
[src]
Try to write a Report
into a generic io::Write
er.
This method fails only when the memo data is too long or in the event of an underlying I/O error.
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,