pub struct PendingObjectStore { /* private fields */ }Implementations§
Source§impl PendingObjectStore
impl PendingObjectStore
pub fn new( directory: impl Into<PathBuf>, namespace: impl Into<String>, format_id: impl Into<String>, ) -> Result<Self>
pub fn install( &self, position: u64, file_name: &str, media_type: &str, bytes: &[u8], ) -> Result<()>
pub fn read(&self, position: u64) -> Result<StoredPendingObject>
pub fn verify_all(&self, referenced_positions: &[u64]) -> Result<()>
pub fn reconcile(&self, referenced_positions: &[u64]) -> Result<()>
pub fn delete_all(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for PendingObjectStore
impl Clone for PendingObjectStore
Auto Trait Implementations§
impl Freeze for PendingObjectStore
impl RefUnwindSafe for PendingObjectStore
impl Send for PendingObjectStore
impl Sync for PendingObjectStore
impl Unpin for PendingObjectStore
impl UnsafeUnpin for PendingObjectStore
impl UnwindSafe for PendingObjectStore
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