Enum oracle::ShutdownMode
source · pub enum ShutdownMode {
Default,
Transactional,
TransactionalLocal,
Immediate,
Abort,
Final,
}Expand description
Database shutdown mode
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§
source§impl Clone for ShutdownMode
impl Clone for ShutdownMode
source§fn clone(&self) -> ShutdownMode
fn clone(&self) -> ShutdownMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ShutdownMode
impl Debug for ShutdownMode
source§impl PartialEq for ShutdownMode
impl PartialEq for ShutdownMode
source§fn eq(&self, other: &ShutdownMode) -> bool
fn eq(&self, other: &ShutdownMode) -> bool
self and other values to be equal, and is used
by ==.impl Copy for ShutdownMode
impl Eq for ShutdownMode
impl StructuralPartialEq for ShutdownMode
Auto Trait Implementations§
impl Freeze for ShutdownMode
impl RefUnwindSafe for ShutdownMode
impl Send for ShutdownMode
impl Sync for ShutdownMode
impl Unpin for ShutdownMode
impl UnwindSafe for ShutdownMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)