pub struct FileSystem { /* private fields */ }Implementations§
Source§impl FileSystem
impl FileSystem
pub async fn new(config: &BlobStoreConfig) -> EyreResult<Self>
Sourcepub fn application_blob_path(
&self,
package: &str,
version: &str,
id: BlobId,
) -> Utf8PathBuf
pub fn application_blob_path( &self, package: &str, version: &str, id: BlobId, ) -> Utf8PathBuf
Get the path for a blob stored in a package/version directory
Sourcepub fn package_path(&self, package: &str) -> Utf8PathBuf
pub fn package_path(&self, package: &str) -> Utf8PathBuf
Get the package directory path
Sourcepub fn version_path(&self, package: &str, version: &str) -> Utf8PathBuf
pub fn version_path(&self, package: &str, version: &str) -> Utf8PathBuf
Get the version directory path
Sourcepub fn root_path(&self) -> Utf8PathBuf
pub fn root_path(&self) -> Utf8PathBuf
Get the root/base path of the blobstore
Trait Implementations§
Source§impl Clone for FileSystem
impl Clone for FileSystem
Source§fn clone(&self) -> FileSystem
fn clone(&self) -> FileSystem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileSystem
impl RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl UnsafeUnpin for FileSystem
impl UnwindSafe for FileSystem
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