pub enum ShutdownMode {
    Default,
    Transactional,
    TransactionalLocal,
    Immediate,
    Abort,
    Final,
}
Expand description

Database shutdown mode

See Connection::shutdown_database.

Variants

Default

Further connects are prohibited. Waits for users to disconnect from the database.

Transactional

Further connects are prohibited and no new transactions are allowed. Waits for active transactions to complete.

TransactionalLocal

Further connects are prohibited and no new transactions are allowed. Waits only for local transactions to complete.

Immediate

Does not wait for current calls to complete or users to disconnect from the database. All uncommitted transactions are terminated and rolled back.

Abort

Does not wait for current calls to complete or users to disconnect from the database. All uncommitted transactions are terminated and are not rolled back. This is the fastest possible way to shut down the database, but the next database startup may require instance recovery. Therefore, this option should be used only in unusual circumstances; for example, if a background process terminates abnormally.

Final

Shuts down the database. Should be used only in the second call to Connection::shutdown_database after the database is closed and dismounted.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.