pub struct ServerBackup {Show 28 fields
pub uuid: Uuid,
pub server: Option<Fetchable<Server>>,
pub node: Fetchable<Node>,
pub backup_configuration: Option<Fetchable<BackupConfiguration>>,
pub backup_group_uuid: Option<Uuid>,
pub system_backup_policy_uuid: Option<Uuid>,
pub database_instance_uuid: Option<Uuid>,
pub kind: ServerBackupKind,
pub database_type: Option<DatabaseAgentType>,
pub name: CompactString,
pub successful: bool,
pub browsable: bool,
pub streaming: bool,
pub locked: bool,
pub shared: bool,
pub ignored_files: Vec<CompactString>,
pub checksum: Option<CompactString>,
pub bytes: i64,
pub files: i64,
pub disk: BackupDisk,
pub upload_id: Option<CompactString>,
pub upload_path: Option<CompactString>,
pub metadata: Value,
pub completed: Option<NaiveDateTime>,
pub deleting: Option<NaiveDateTime>,
pub deletion_retries: i32,
pub deleted: Option<NaiveDateTime>,
pub created: NaiveDateTime,
/* private fields */
}Fields§
§uuid: Uuid§server: Option<Fetchable<Server>>§node: Fetchable<Node>§backup_configuration: Option<Fetchable<BackupConfiguration>>§backup_group_uuid: Option<Uuid>§system_backup_policy_uuid: Option<Uuid>§database_instance_uuid: Option<Uuid>§kind: ServerBackupKind§database_type: Option<DatabaseAgentType>§name: CompactString§successful: bool§browsable: bool§streaming: bool§locked: bool§ignored_files: Vec<CompactString>§checksum: Option<CompactString>§bytes: i64§files: i64§disk: BackupDisk§upload_id: Option<CompactString>§upload_path: Option<CompactString>§metadata: Value§completed: Option<NaiveDateTime>§deleting: Option<NaiveDateTime>§deletion_retries: i32§deleted: Option<NaiveDateTime>§created: NaiveDateTimeImplementations§
Source§impl ServerBackup
impl ServerBackup
pub async fn prune_retention_for_backup( state: &State, backup_uuid: Uuid, ) -> Result<u64, Error>
pub async fn prune_ungrouped_backups(state: &State) -> Result<u64, Error>
Sourcepub async fn evict_for_create(
state: &State,
server_uuid: Uuid,
kind: ServerBackupKind,
mode: EvictionMode,
) -> Result<u64, Error>
pub async fn evict_for_create( state: &State, server_uuid: Uuid, kind: ServerBackupKind, mode: EvictionMode, ) -> Result<u64, Error>
Frees a slot for a server that has reached its backup_limit by making room for a backup
of kind, returning how many deletions were successfully dispatched. Node deletions
complete asynchronously, so the caller must subtract this from its own count rather than
counting again.
pub async fn prune_group_backups(state: &State) -> Result<u64, Error>
pub async fn prune_system_backups(state: &State) -> Result<u64, Error>
Source§impl ServerBackup
impl ServerBackup
pub async fn create_raw( state: &State, options: CreateServerBackupOptions<'_>, ) -> Result<Self, Error>
pub async fn by_server_uuid_uuid( database: &Database, server_uuid: Uuid, uuid: Uuid, ) -> Result<Option<Self>, DatabaseError>
pub async fn select_completed_by_server_uuid( database: &Database, server_uuid: Uuid, name: Option<&str>, backup_group_uuid: Option<Uuid>, filter: &ServerBackupFilter, oldest: bool, ) -> Result<Option<Self>, DatabaseError>
pub async fn by_node_uuid_uuid( database: &Database, node_uuid: Uuid, uuid: Uuid, ) -> Result<Option<Self>, DatabaseError>
pub async fn by_server_uuid_with_pagination( database: &Database, server_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn by_server_uuid_node_uuid_with_pagination( database: &Database, server_uuid: Uuid, node_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, filter: &ServerBackupFilter, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn by_server_uuid_node_uuid_backup_group_uuid_with_pagination( database: &Database, server_uuid: Uuid, node_uuid: Uuid, backup_group_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn by_ungrouped_server_uuid_node_uuid_with_pagination( database: &Database, server_uuid: Uuid, node_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, filter: &ServerBackupFilter, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn usage_by_server_uuid( database: &Database, server_uuid: Uuid, ) -> Result<ServerBackupUsage, Error>
pub async fn by_system_server_uuid_node_uuid_with_pagination( database: &Database, server_uuid: Uuid, node_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn by_system_backup_policy_uuid_with_pagination( database: &Database, system_backup_policy_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn all_by_system_backup_policy_uuid( database: &Database, system_backup_policy_uuid: Uuid, ) -> Result<Vec<Self>, DatabaseError>
pub async fn by_partially_detached_server_uuid_node_uuid_with_pagination( database: &Database, server_uuid: Uuid, node_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn by_node_uuid_with_pagination( database: &Database, node_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn by_database_agent_host_uuid_with_pagination( database: &Database, database_agent_host_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn by_backup_configuration_uuid_with_pagination( database: &Database, backup_configuration_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn by_detached_node_uuid_with_pagination( database: &Database, node_uuid: Uuid, page: i64, per_page: i64, search: Option<&str>, ) -> Result<Pagination<Self>, DatabaseError>
pub async fn all_uuids_by_server_uuid( database: &Database, server_uuid: Uuid, ) -> Result<Vec<Uuid>, DatabaseError>
pub async fn all_by_server_uuid( database: &Database, server_uuid: Uuid, ) -> Result<Vec<Self>, DatabaseError>
pub async fn count_by_server_uuid( database: &Database, server_uuid: Uuid, ) -> Result<i64, Error>
Sourcepub async fn count_system_inflight_by_system_backup_policy_uuid_node_uuid(
database: &Database,
system_backup_policy_uuid: Uuid,
node_uuid: Uuid,
) -> Result<i64, Error>
pub async fn count_system_inflight_by_system_backup_policy_uuid_node_uuid( database: &Database, system_backup_policy_uuid: Uuid, node_uuid: Uuid, ) -> Result<i64, Error>
In-flight system backups for a single policy on a node, ignoring rows older than a day (those are only failed-out when the wings node resets and must not starve the scheduler forever).
Sourcepub async fn count_system_inflight_by_system_backup_policy_uuid_database_agent_host_uuid(
database: &Database,
system_backup_policy_uuid: Uuid,
database_agent_host_uuid: Uuid,
) -> Result<i64, Error>
pub async fn count_system_inflight_by_system_backup_policy_uuid_database_agent_host_uuid( database: &Database, system_backup_policy_uuid: Uuid, database_agent_host_uuid: Uuid, ) -> Result<i64, Error>
Sibling of Self::count_system_inflight_by_system_backup_policy_uuid_node_uuid for
database instance policies, whose dumps load the database agent host rather than the node.
pub async fn generate_metadata( state: &State, server: &Server, ) -> Result<Value, Error>
pub fn generate_database_metadata( database_instance: &ServerDatabaseInstance, ) -> Value
Sourcepub fn database_dump_name(&self) -> CompactString
pub fn database_dump_name(&self) -> CompactString
The file name (without compression suffix) wings stores a database dump under.
pub async fn download_url( &self, state: &State, user: &User, node: &Node, archive_format: StreamableArchiveFormat, ) -> Result<String, Error>
pub async fn restore( self, state: &State, transaction: &mut Transaction<'_, Postgres>, server: Server, options: ServerBackupRestoreOptions, ) -> Result<(), Error>
pub async fn restore_database( self, state: &State, server: Server, database_instance: &ServerDatabaseInstance, request_uuid: Option<Uuid>, ) -> Result<(), Error>
pub async fn restore_startup( &self, state: &State, transaction: &mut Transaction<'_, Postgres>, server: &mut Server, ) -> Result<(), Error>
pub async fn wings_restore_download_url( &self, state: &State, server_uuid: Uuid, ) -> Result<Option<CompactString>, Error>
pub async fn export( &self, state: &State, server: &Server, path: CompactString, archive_format: StreamableArchiveFormat, foreground: bool, ) -> Result<Response, Error>
pub async fn query(&self, state: &State, node: &Node) -> Result<Response, Error>
pub fn default_name() -> CompactString
pub fn s3_path( &self, server_uuid: Uuid, compression_type: CompressionType, ) -> CompactString
pub fn s3_content_type(name: &str) -> &'static str
pub async fn into_admin_node_api_object( self, state: &State, storage_url_retriever: &StorageUrlRetriever<'_>, ) -> Result<AdminApiNodeServerBackup, DatabaseError>
Source§impl ServerBackup
impl ServerBackup
pub const MAX_DELETION_RETRIES: i32 = 8
pub fn deletion_status(&self) -> Option<ServerBackupDeletionStatus>
pub async fn dispatch_deletion( &self, state: &State, options: &DeleteServerBackupOptions, ) -> Result<bool, Error>
pub async fn finish_deletion( &self, state: &State, options: &DeleteServerBackupOptions, ) -> Result<(), Error>
pub async fn fail_deletion_attempt(&self, state: &State) -> Result<i32, Error>
pub async fn redispatch_stale_deletions(state: &State) -> Result<u64, Error>
Source§impl ServerBackup
impl ServerBackup
pub async fn count_failed( database: &Database, scope: FailedServerBackupScope, ) -> Result<i64, Error>
Sourcepub async fn delete_failed(
state: &State,
scope: FailedServerBackupScope,
force: bool,
) -> Result<u64, Error>
pub async fn delete_failed( state: &State, scope: FailedServerBackupScope, force: bool, ) -> Result<u64, Error>
Deletes every failed backup in scope, returning how many deletions were dispatched. Each
chunk is claimed in its own transaction so the rows show as deleting straight away, and a
panel restart mid-sweep leaves them to redispatch_stale_deletions.
Trait Implementations§
Source§impl BaseModel for ServerBackup
impl BaseModel for ServerBackup
const NAME: &'static str = "server_backup"
fn get_extension_list() -> &'static ModelExtensionList
fn get_extension_data(&self) -> &ModelExtensionData
fn base_columns(prefix: Option<&str>) -> BTreeMap<&'static str, CompactString>
fn map(prefix: Option<&str>, row: &PgRow) -> Result<Self, DatabaseError>
Source§fn register_model_extension(
extension: impl ModelExtension + Send + Sync + 'static,
)
fn register_model_extension( extension: impl ModelExtension + Send + Sync + 'static, )
Source§fn parse_model_extension<Extension: SafeModelExtension>(
&self,
) -> Result<Extension::Value, DatabaseError>
fn parse_model_extension<Extension: SafeModelExtension>( &self, ) -> Result<Extension::Value, DatabaseError>
fn columns(prefix: Option<&str>) -> BTreeMap<&'static str, CompactString>
fn columns_sql(prefix: Option<&str>) -> CompactString
fn map_extensions( prefix: &str, row: &PgRow, ) -> Result<ModelExtensionData, DatabaseError>
fn cache_invalidation_keys(&self) -> Vec<CompactString>
Source§impl ByUuid for ServerBackup
impl ByUuid for ServerBackup
fn by_uuid<'life0, 'async_trait>(
database: &'life0 Database,
uuid: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Self, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn by_uuid_with_transaction<'life0, 'life1, 'async_trait>(
transaction: &'life0 mut Transaction<'life1, Postgres>,
uuid: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Self, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn by_uuid_cached<'life0, 'async_trait>(
database: &'life0 Database,
uuid: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn by_uuid_optional<'life0, 'async_trait>(
database: &'life0 Database,
uuid: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Self>, DatabaseError>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn by_uuid_optional_with_transaction<'life0, 'life1, 'async_trait>(
transaction: &'life0 mut Transaction<'life1, Postgres>,
uuid: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Self>, DatabaseError>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn by_uuid_optional_cached<'life0, 'async_trait>(
database: &'life0 Database,
uuid: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Self>, Error>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn get_fetchable(uuid: Uuid) -> Fetchable<Self>
fn get_fetchable_from_row( row: &PgRow, column: impl AsRef<str>, ) -> Option<Fetchable<Self>>
fn invalidate_cached<'life0, 'async_trait>(
database: &'life0 Database,
uuid: Uuid,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
Source§impl Clone for ServerBackup
impl Clone for ServerBackup
Source§fn clone(&self) -> ServerBackup
fn clone(&self) -> ServerBackup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CreatableModel for ServerBackup
impl CreatableModel for ServerBackup
type CreateOptions<'a> = CreateServerBackupOptions<'a>
type CreateResult = ServerBackup
fn get_create_handlers() -> &'static LazyLock<CreateListenerList<Self>>
fn create_with_transaction<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_state: &'life0 State,
_options: Self::CreateOptions<'life1>,
_transaction: &'life2 mut Transaction<'life3, Postgres>,
) -> Pin<Box<dyn Future<Output = Result<Self, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn create<'life0, 'life1, 'async_trait>(
state: &'life0 State,
options: Self::CreateOptions<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Self, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_create_handler<F: for<'a> Fn(&'a mut Self::CreateOptions<'_>, &'a mut InsertQueryBuilder<'_>, &'a State, &'a mut Transaction<'_, Postgres>) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'a>> + Send + Sync + 'static>( priority: ListenerPriority, callback: F, )
fn register_after_create_handler<F: for<'a> Fn(&'a mut Self::CreateResult, &'a Self::CreateOptions<'_>, &'a State, &'a mut Transaction<'_, Postgres>) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'a>> + Send + Sync + 'static>( priority: ListenerPriority, callback: F, )
fn run_create_handlers<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
options: &'life0 mut Self::CreateOptions<'life1>,
query_builder: &'life2 mut InsertQueryBuilder<'_>,
state: &'life3 State,
transaction: &'life4 mut Transaction<'life5, Postgres>,
) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn run_after_create_handlers<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
result: &'life0 mut Self::CreateResult,
options: &'life1 Self::CreateOptions<'life2>,
state: &'life3 State,
transaction: &'life4 mut Transaction<'life5, Postgres>,
) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
Source§impl DeletableModel for ServerBackup
impl DeletableModel for ServerBackup
type DeleteOptions = DeleteServerBackupOptions
fn get_delete_handlers() -> &'static LazyLock<DeleteHandlerList<Self>>
fn delete_with_transaction<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_state: &'life1 State,
_options: Self::DeleteOptions,
_transaction: &'life2 mut Transaction<'life3, Postgres>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 State,
options: Self::DeleteOptions,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_delete_handler<F: for<'a> Fn(&'a Self, &'a Self::DeleteOptions, &'a State, &'a mut Transaction<'_, Postgres>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> + Send + Sync + 'static>( priority: ListenerPriority, callback: F, )
fn register_after_delete_handler<F: for<'a> Fn(&'a Self, &'a Self::DeleteOptions, &'a State, &'a mut Transaction<'_, Postgres>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> + Send + Sync + 'static>( priority: ListenerPriority, callback: F, )
fn run_delete_handlers<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
options: &'life1 Self::DeleteOptions,
state: &'life2 State,
transaction: &'life3 mut Transaction<'life4, Postgres>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn run_after_delete_handlers<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
options: &'life1 Self::DeleteOptions,
state: &'life2 State,
transaction: &'life3 mut Transaction<'life4, Postgres>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§impl<'de> Deserialize<'de> for ServerBackup
impl<'de> Deserialize<'de> for ServerBackup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl EventEmittingModel for ServerBackup
impl EventEmittingModel for ServerBackup
type Event = ServerBackupEvent
fn get_event_emitter() -> &'static EventEmitter<Self::Event>
fn register_event_handler<F: Fn(State, Arc<Self::Event>) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<(), Error>> + Send + 'static>( listener: F, ) -> EventHandlerHandle
Source§impl IntoAdminApiObject for ServerBackup
impl IntoAdminApiObject for ServerBackup
type AdminApiObject = AdminApiServerBackup
type ExtraArgs<'a> = &'a StorageUrlRetriever<'a>
fn into_admin_api_object<'a, 'life0, 'async_trait>(
self,
state: &'life0 State,
storage_url_retriever: Self::ExtraArgs<'a>,
) -> Pin<Box<dyn Future<Output = Result<Self::AdminApiObject, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Source§impl IntoApiObject for ServerBackup
impl IntoApiObject for ServerBackup
type ApiObject = ApiServerBackup
type ExtraArgs<'a> = ()
fn into_api_object<'a, 'life0, 'async_trait>(
self,
state: &'life0 State,
_args: Self::ExtraArgs<'a>,
) -> Pin<Box<dyn Future<Output = Result<Self::ApiObject, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Source§impl Serialize for ServerBackup
impl Serialize for ServerBackup
Source§impl UpdatableModel for ServerBackup
impl UpdatableModel for ServerBackup
type UpdateOptions = UpdateServerBackupOptions
fn get_update_handlers() -> &'static LazyLock<UpdateHandlerList<Self>>
fn update_with_transaction<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
state: &'life1 State,
options: Self::UpdateOptions,
transaction: &'life2 mut Transaction<'life3, Postgres>,
) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn register_update_handler<F: for<'a> Fn(&'a mut Self, &'a mut Self::UpdateOptions, &'a mut UpdateQueryBuilder<'_>, &'a State, &'a mut Transaction<'_, Postgres>) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'a>> + Send + Sync + 'static>( priority: ListenerPriority, callback: F, )
fn register_after_update_handler<F: for<'a> Fn(&'a mut Self, &'a State, &'a mut Transaction<'_, Postgres>) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'a>> + Send + Sync + 'static>( priority: ListenerPriority, callback: F, )
fn run_update_handlers<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 mut self,
options: &'life1 mut Self::UpdateOptions,
query_builder: &'life2 mut UpdateQueryBuilder<'_>,
state: &'life3 State,
transaction: &'life4 mut Transaction<'life5, Postgres>,
) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn run_after_update_handlers<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
state: &'life1 State,
transaction: &'life2 mut Transaction<'life3, Postgres>,
) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
state: &'life1 State,
options: Self::UpdateOptions,
) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for ServerBackup
impl RefUnwindSafe for ServerBackup
impl Send for ServerBackup
impl Sync for ServerBackup
impl Unpin for ServerBackup
impl UnsafeUnpin for ServerBackup
impl UnwindSafe for ServerBackup
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.