pub struct MtreeTransfer {
mtree: Mtree,
data: Vec<u8>,
}Expand description
The representation of transferable Mtree data.
An Mtree in itself does not provide an idempotent write implementation.
This type enables the validation of ALPM-MTREE data when consuming it and to make available
the input data exactly the way it was read.
Fields§
§mtree: Mtree§data: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for MtreeTransfer
impl Clone for MtreeTransfer
Source§impl Debug for MtreeTransfer
impl Debug for MtreeTransfer
Source§impl MetadataFile<MtreeSchema> for MtreeTransfer
impl MetadataFile<MtreeSchema> for MtreeTransfer
Source§fn from_file_with_schema(
file: impl AsRef<Path>,
schema: Option<MtreeSchema>,
) -> Result<Self, Self::Err>where
Self: Sized,
fn from_file_with_schema(
file: impl AsRef<Path>,
schema: Option<MtreeSchema>,
) -> Result<Self, Self::Err>where
Self: Sized,
Source§fn from_reader_with_schema(
reader: impl Read,
schema: Option<MtreeSchema>,
) -> Result<Self, Self::Err>where
Self: Sized,
fn from_reader_with_schema(
reader: impl Read,
schema: Option<MtreeSchema>,
) -> Result<Self, Self::Err>where
Self: Sized,
Source§fn from_str_with_schema(
s: &str,
schema: Option<MtreeSchema>,
) -> Result<Self, Self::Err>where
Self: Sized,
fn from_str_with_schema(
s: &str,
schema: Option<MtreeSchema>,
) -> Result<Self, Self::Err>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for MtreeTransfer
impl RefUnwindSafe for MtreeTransfer
impl Send for MtreeTransfer
impl Sync for MtreeTransfer
impl Unpin for MtreeTransfer
impl UnsafeUnpin for MtreeTransfer
impl UnwindSafe for MtreeTransfer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more