#[non_exhaustive]pub enum TransientWriteRefused {
TransientWriteInProgress,
WriteInProgress,
}Expand description
A transient write, or a revert of transient edits, was refused: what they need of the
store does not hold. See RopeStore::begin_transient_write and
RopeStore::revert_transient_edits.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TransientWriteInProgress
Another transient write is in progress, on this thread or another.
WriteInProgress
A write is open (a write transaction, or another write begun through
RopeStore::check_write_allowed): the first transient write’s snapshot would be
taken over it, and a revert would take what it then records away.
Trait Implementations§
Source§impl Clone for TransientWriteRefused
impl Clone for TransientWriteRefused
impl Copy for TransientWriteRefused
Source§impl Debug for TransientWriteRefused
impl Debug for TransientWriteRefused
Source§impl Display for TransientWriteRefused
impl Display for TransientWriteRefused
impl Eq for TransientWriteRefused
Source§impl Error for TransientWriteRefused
impl Error for TransientWriteRefused
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TransientWriteRefused
impl PartialEq for TransientWriteRefused
impl StructuralPartialEq for TransientWriteRefused
Auto Trait Implementations§
impl Freeze for TransientWriteRefused
impl RefUnwindSafe for TransientWriteRefused
impl Send for TransientWriteRefused
impl Sync for TransientWriteRefused
impl Unpin for TransientWriteRefused
impl UnsafeUnpin for TransientWriteRefused
impl UnwindSafe for TransientWriteRefused
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