[−][src]Struct rpki::manifest::FileAndHash
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]
fn clone(&self) -> FileAndHash<F, H>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
F: Send,
H: Send,
impl<F, H> Sync for FileAndHash<F, H> where
F: Sync,
H: Sync,
F: Sync,
H: Sync,
impl<F, H> Unpin for FileAndHash<F, H> where
F: Unpin,
H: Unpin,
F: Unpin,
H: Unpin,
impl<F, H> UnwindSafe for FileAndHash<F, H> where
F: UnwindSafe,
H: UnwindSafe,
F: UnwindSafe,
H: UnwindSafe,
impl<F, H> RefUnwindSafe for FileAndHash<F, H> where
F: RefUnwindSafe,
H: RefUnwindSafe,
F: RefUnwindSafe,
H: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,