pub enum FailureHandlingKind {
Abort,
Transactional,
TextOnlyTransactional,
Undo,
}Variants§
Abort
Applying the workspace change is simply aborted if one of the changes provided fails. All operations executed before the failing operation stay executed.
Transactional
All operations are executed transactional. That means they either all succeed or no changes at all are applied to the workspace.
TextOnlyTransactional
If the workspace edit contains only textual file changes they are executed transactional. If resource changes (create, rename or delete file) are part of the change the failure handling strategy is abort.
Undo
The client tries to undo the operations already executed. But there is no guarantee that this is succeeding.
Implementations§
Trait Implementations§
Source§impl Clone for FailureHandlingKind
impl Clone for FailureHandlingKind
Source§fn clone(&self) -> FailureHandlingKind
fn clone(&self) -> FailureHandlingKind
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 moreSource§impl Debug for FailureHandlingKind
impl Debug for FailureHandlingKind
Source§impl<'de> Deserialize<'de> for FailureHandlingKind
impl<'de> Deserialize<'de> for FailureHandlingKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FailureHandlingKind
impl Display for FailureHandlingKind
Source§impl From<FailureHandlingKind> for String
impl From<FailureHandlingKind> for String
Source§fn from(e: FailureHandlingKind) -> Self
fn from(e: FailureHandlingKind) -> Self
Converts to this type from the input type.
Source§impl Hash for FailureHandlingKind
impl Hash for FailureHandlingKind
Source§impl PartialEq for FailureHandlingKind
impl PartialEq for FailureHandlingKind
Source§fn eq(&self, other: &FailureHandlingKind) -> bool
fn eq(&self, other: &FailureHandlingKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FailureHandlingKind
impl Serialize for FailureHandlingKind
Source§impl TryFrom<String> for FailureHandlingKind
impl TryFrom<String> for FailureHandlingKind
impl Copy for FailureHandlingKind
impl Eq for FailureHandlingKind
impl StructuralPartialEq for FailureHandlingKind
Auto Trait Implementations§
impl Freeze for FailureHandlingKind
impl RefUnwindSafe for FailureHandlingKind
impl Send for FailureHandlingKind
impl Sync for FailureHandlingKind
impl Unpin for FailureHandlingKind
impl UnsafeUnpin for FailureHandlingKind
impl UnwindSafe for FailureHandlingKind
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