pub struct FileStore { /* private fields */ }Expand description
Filesystem-backed store using a flat tusd-style key layout under root.
Implementations§
Trait Implementations§
Source§impl SendDataStore for FileStore
impl SendDataStore for FileStore
type UploadType = FileUpload
Source§async fn create_upload(&self, info: UploadInfo) -> Result<FileUpload, TusError>
async fn create_upload(&self, info: UploadInfo) -> Result<FileUpload, TusError>
Create a new upload slot and return a handle to it.
Source§async fn get_upload(&self, id: &UploadId) -> Result<FileUpload, TusError>
async fn get_upload(&self, id: &UploadId) -> Result<FileUpload, TusError>
Retrieve an existing upload by ID.
Auto Trait Implementations§
impl Freeze for FileStore
impl RefUnwindSafe for FileStore
impl Send for FileStore
impl Sync for FileStore
impl Unpin for FileStore
impl UnsafeUnpin for FileStore
impl UnwindSafe for FileStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<TraitVariantBlanketType> DataStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendDataStore,
impl<TraitVariantBlanketType> DataStore for TraitVariantBlanketTypewhere
TraitVariantBlanketType: SendDataStore,
type UploadType = <TraitVariantBlanketType as SendDataStore>::UploadType
Source§async fn create_upload(
&self,
info: UploadInfo,
) -> Result<<TraitVariantBlanketType as DataStore>::UploadType, TusError>
async fn create_upload( &self, info: UploadInfo, ) -> Result<<TraitVariantBlanketType as DataStore>::UploadType, TusError>
Create a new upload slot and return a handle to it.
Source§async fn get_upload(
&self,
id: &UploadId,
) -> Result<<TraitVariantBlanketType as DataStore>::UploadType, TusError>
async fn get_upload( &self, id: &UploadId, ) -> Result<<TraitVariantBlanketType as DataStore>::UploadType, TusError>
Retrieve an existing upload by ID.