pub enum CommandEffect {
ReadOnly,
LocalMutation,
RepositoryMutation,
NetworkMutation,
Destructive,
}Expand description
What running a command changes, as a filter.
Variants§
ReadOnly
Reads and answers
LocalMutation
Writes only what no commit carries
RepositoryMutation
Writes tracked files
NetworkMutation
Reaches the network with an effect
Destructive
Removes something
Trait Implementations§
Source§impl Clone for CommandEffect
impl Clone for CommandEffect
Source§fn clone(&self) -> CommandEffect
fn clone(&self) -> CommandEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandEffect
Source§impl Debug for CommandEffect
impl Debug for CommandEffect
impl Eq for CommandEffect
Source§impl PartialEq for CommandEffect
impl PartialEq for CommandEffect
Source§fn eq(&self, other: &CommandEffect) -> bool
fn eq(&self, other: &CommandEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandEffect
Source§impl ValueEnum for CommandEffect
impl ValueEnum for CommandEffect
Auto Trait Implementations§
impl Freeze for CommandEffect
impl RefUnwindSafe for CommandEffect
impl Send for CommandEffect
impl Sync for CommandEffect
impl Unpin for CommandEffect
impl UnsafeUnpin for CommandEffect
impl UnwindSafe for CommandEffect
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.