Struct asuran::manifest::destination::filesystem::FileSystemTarget [−][src]
pub struct FileSystemTarget { /* fields omitted */ }
Expand description
A type that handles the complexities of dealing with a file system for you.
Implementations
Creates a new FileSystemTarget
with the given path as its top level directory.
The FileSystemTarget
will consider all paths below this directory for backup.
Trait Implementations
fn raw_store_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, B: BackendClone, C: AsyncChunker + Send + 'static>(
&'life0 self,
repo: &'life1 mut Repository<B>,
chunker: C,
archive: &'life2 ActiveArchive,
node: Node,
objects: HashMap<String, BackupObject<T>>,
ex: &'life3 Executor<'life4>
) -> Pin<Box<dyn Future<Output = Result<(), DriverError>> + Send + 'async_trait>> where
B: 'async_trait,
C: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: Sync + 'async_trait,
fn raw_store_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, B: BackendClone, C: AsyncChunker + Send + 'static>(
&'life0 self,
repo: &'life1 mut Repository<B>,
chunker: C,
archive: &'life2 ActiveArchive,
node: Node,
objects: HashMap<String, BackupObject<T>>,
ex: &'life3 Executor<'life4>
) -> Pin<Box<dyn Future<Output = Result<(), DriverError>> + Send + 'async_trait>> where
B: 'async_trait,
C: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: Sync + 'async_trait,
Inserts an object into the repository using the output from
BackupTarget::backup_object
Read more
fn store_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, B: BackendClone, C: AsyncChunker + Send + 'static>(
&'life0 self,
repo: &'life1 mut Repository<B>,
chunker: C,
archive: &'life2 ActiveArchive,
node: Node,
ex: &'life3 Executor<'life4>
) -> Pin<Box<dyn Future<Output = Result<(), DriverError>> + Send + 'async_trait>> where
B: 'async_trait,
C: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: Sync + 'async_trait,
fn store_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, B: BackendClone, C: AsyncChunker + Send + 'static>(
&'life0 self,
repo: &'life1 mut Repository<B>,
chunker: C,
archive: &'life2 ActiveArchive,
node: Node,
ex: &'life3 Executor<'life4>
) -> Pin<Box<dyn Future<Output = Result<(), DriverError>> + Send + 'async_trait>> where
B: 'async_trait,
C: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: Sync + 'async_trait,
Convenience method that performs a call to self.backup_object
for you and
routes the results into self.raw_store_object
Read more
fn raw_retrieve_object<'life0, 'life1, 'life2, 'async_trait, B: BackendClone>(
&'life0 self,
repo: &'life1 mut Repository<B>,
archive: &'life2 ActiveArchive,
node: Node,
objects: HashMap<String, RestoreObject<T>>
) -> Pin<Box<dyn Future<Output = Result<(), DriverError>> + Send + 'async_trait>> where
B: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
fn raw_retrieve_object<'life0, 'life1, 'life2, 'async_trait, B: BackendClone>(
&'life0 self,
repo: &'life1 mut Repository<B>,
archive: &'life2 ActiveArchive,
node: Node,
objects: HashMap<String, RestoreObject<T>>
) -> Pin<Box<dyn Future<Output = Result<(), DriverError>> + Send + 'async_trait>> where
B: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
Retrives an object from the repository using the output from RestoreTarget::restore_object Read more
fn retrieve_object<'life0, 'life1, 'life2, 'async_trait, B: BackendClone>(
&'life0 self,
repo: &'life1 mut Repository<B>,
archive: &'life2 ActiveArchive,
node: Node
) -> Pin<Box<dyn Future<Output = Result<(), DriverError>> + Send + 'async_trait>> where
B: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
fn retrieve_object<'life0, 'life1, 'life2, 'async_trait, B: BackendClone>(
&'life0 self,
repo: &'life1 mut Repository<B>,
archive: &'life2 ActiveArchive,
node: Node
) -> Pin<Box<dyn Future<Output = Result<(), DriverError>> + Send + 'async_trait>> where
B: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
Retrieves an object, performing the call to BackupTarget::restore_object and raw_retrive_object for you. Read more
Loads an object listing and creates a new restore target from it
Takes an object path Read more
Auto Trait Implementations
impl !RefUnwindSafe for FileSystemTarget
impl Send for FileSystemTarget
impl Sync for FileSystemTarget
impl Unpin for FileSystemTarget
impl !UnwindSafe for FileSystemTarget
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more