pub struct Archiver { /* private fields */ }Implementations§
Source§impl Archiver
impl Archiver
pub fn new(storage: &Path) -> Result<Self>
pub fn read(path: &Path) -> Result<Vec<ArchiveRecord>>
pub fn finish(self) -> Result<PathBuf>
pub fn generate_header(url: &str, content_length: usize) -> RawRecordHeader
pub async fn archive_record(&mut self, record: &ArchiveRecord) -> Result<usize>
Auto Trait Implementations§
impl Freeze for Archiver
impl RefUnwindSafe for Archiver
impl Send for Archiver
impl Sync for Archiver
impl Unpin for Archiver
impl UnsafeUnpin for Archiver
impl UnwindSafe for Archiver
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