pub struct BackupApi<P: CheckedPermissions> { /* private fields */ }Implementations§
Source§impl<P: CheckedPermissions> BackupApi<P>
impl<P: CheckedPermissions> BackupApi<P>
pub fn create_backup(&self) -> Result<(), Error>where
P: MessageAllowed<CreateBackup>,
pub fn create_backup_file(
&self,
backup_path: String,
location: Location,
) -> Result<(), Error>where
P: MessageAllowed<CreateBackupFile>,
pub fn restore_backup(
&self,
backup_path: String,
location: Location,
) -> Result<(), Error>where
P: MessageAllowed<RestoreBackup>,
pub fn subscribe_restore_progress<S>(&self, context: &mut ServerContext<S>)where
P: MessageAllowed<SubscribeRestoreProgress>,
S: Server + ArchiveEventHandler<RestoreProgress>,
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for BackupApi<P>
impl<P> RefUnwindSafe for BackupApi<P>
impl<P> Send for BackupApi<P>
impl<P> Sync for BackupApi<P>
impl<P> Unpin for BackupApi<P>
impl<P> UnwindSafe for BackupApi<P>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.