Enum minus::ExitStrategy
source · pub enum ExitStrategy {
ProcessQuit,
PagerQuit,
}
Expand description
Behaviour that happens when the pager is exited
Variants§
ProcessQuit
Kill the entire application immediately.
This is the preferred option if paging is the last thing you do. For example, the last thing you do in your program is reading from a file or a database and paging it concurrently
This is the default strategy.
PagerQuit
Kill the pager only.
This is the preferred option if you want to do more stuff after exiting the pager. For example, if you’ve file system locks or you want to close database connectiions after the pager has done i’s job, you probably want to go for this option
Trait Implementations§
source§impl Clone for ExitStrategy
impl Clone for ExitStrategy
source§fn clone(&self) -> ExitStrategy
fn clone(&self) -> ExitStrategy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExitStrategy
impl Debug for ExitStrategy
source§impl PartialEq for ExitStrategy
impl PartialEq for ExitStrategy
source§fn eq(&self, other: &ExitStrategy) -> bool
fn eq(&self, other: &ExitStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExitStrategy
impl StructuralPartialEq for ExitStrategy
Auto Trait Implementations§
impl Freeze for ExitStrategy
impl RefUnwindSafe for ExitStrategy
impl Send for ExitStrategy
impl Sync for ExitStrategy
impl Unpin for ExitStrategy
impl UnwindSafe for ExitStrategy
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
Mutably borrows from an owned value. Read more