pub enum NeedConfirmation {
Copy,
Delete,
Move,
EmptyTrash,
BulkAction,
DeleteCloud,
}Expand description
Different kind of last edition command received requiring a confirmation. Copy, move and delete require a confirmation to prevent big mistakes.
Variants§
Copy
Copy flagged files
Delete
Delete flagged files
Move
Move flagged files
EmptyTrash
Empty Trash
BulkAction
Bulk
DeleteCloud
Delete cloud files
Implementations§
Source§impl NeedConfirmation
impl NeedConfirmation
Sourcepub fn confirmation_string(&self, destination: &str) -> String
pub fn confirmation_string(&self, destination: &str) -> String
A confirmation message to be displayed before executing the mode. When files are moved or copied the destination is displayed.
Trait Implementations§
Source§impl Clone for NeedConfirmation
impl Clone for NeedConfirmation
Source§fn clone(&self) -> NeedConfirmation
fn clone(&self) -> NeedConfirmation
Returns a duplicate 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 CursorOffset for NeedConfirmation
impl CursorOffset for NeedConfirmation
Source§fn cursor_offset(&self) -> u16
fn cursor_offset(&self) -> u16
Offset before the cursor. Since we ask the user confirmation, we need to know how much space is needed.
Source§impl Debug for NeedConfirmation
impl Debug for NeedConfirmation
Source§impl Display for NeedConfirmation
impl Display for NeedConfirmation
Source§impl Leave for NeedConfirmation
impl Leave for NeedConfirmation
Source§fn must_refresh(&self) -> bool
fn must_refresh(&self) -> bool
Should the file content & window be refreshed when leaving this mode?
Source§fn must_reset_mode(&self) -> bool
fn must_reset_mode(&self) -> bool
Should the edit mode be reset to Nothing when leaving this mode ?
Source§impl LineDisplay for NeedConfirmation
impl LineDisplay for NeedConfirmation
Source§impl PartialEq for NeedConfirmation
impl PartialEq for NeedConfirmation
Source§impl SecondLine for NeedConfirmation
impl SecondLine for NeedConfirmation
Source§fn second_line(&self) -> &'static str
fn second_line(&self) -> &'static str
Line describing the mode and its custom keybinds
impl Copy for NeedConfirmation
impl Eq for NeedConfirmation
impl StructuralPartialEq for NeedConfirmation
Auto Trait Implementations§
impl Freeze for NeedConfirmation
impl RefUnwindSafe for NeedConfirmation
impl Send for NeedConfirmation
impl Sync for NeedConfirmation
impl Unpin for NeedConfirmation
impl UnwindSafe for NeedConfirmation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.