[][src]Struct rpki::manifest::FileAndHash

pub struct FileAndHash<F, H> { /* fields omitted */ }

An entry in the manifest file list.

This type contains a file name and a hash over the file. Both are expressed through generic types for superiour flexibility.

Methods

impl<F, H> FileAndHash<F, H>[src]

pub fn new(file: F, hash: H) -> Self[src]

Creates a new value.

pub fn file(&self) -> &F[src]

Returns a reference to the file name.

pub fn hash(&self) -> &H[src]

Returns a reference to the hash.

pub fn into_pair(self) -> (F, H)[src]

Returns a pair of the file and the hash.

impl<F: AsRef<[u8]>, H: AsRef<[u8]>> FileAndHash<F, H>[src]

pub fn encode_ref<'a>(&'a self) -> impl Values + 'a[src]

Returns a value encoder for a reference.

Trait Implementations

impl<F: AsRef<[u8]>, H: AsRef<[u8]>> AsRef<FileAndHash<F, H>> for FileAndHash<F, H>[src]

impl<F: Clone, H: Clone> Clone for FileAndHash<F, H>[src]

impl<F: Debug, H: Debug> Debug for FileAndHash<F, H>[src]

Auto Trait Implementations

impl<F, H> Send for FileAndHash<F, H> where
    F: Send,
    H: Send

impl<F, H> Sync for FileAndHash<F, H> where
    F: Sync,
    H: Sync

impl<F, H> Unpin for FileAndHash<F, H> where
    F: Unpin,
    H: Unpin

impl<F, H> UnwindSafe for FileAndHash<F, H> where
    F: UnwindSafe,
    H: UnwindSafe

impl<F, H> RefUnwindSafe for FileAndHash<F, H> where
    F: RefUnwindSafe,
    H: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]