pub enum WriteOrigin {
Local,
RemoteImport,
Maintenance,
}Expand description
Why a durable transaction is being performed. Cache refreshes use EXTERNAL_AUTHOR and do not constitute a write transaction. Remote imports persist but must not echo outbound.
Variants§
Trait Implementations§
Source§impl Clone for WriteOrigin
impl Clone for WriteOrigin
impl Copy for WriteOrigin
Source§impl Debug for WriteOrigin
impl Debug for WriteOrigin
Source§impl Default for WriteOrigin
impl Default for WriteOrigin
impl Eq for WriteOrigin
Source§impl PartialEq for WriteOrigin
impl PartialEq for WriteOrigin
impl StructuralPartialEq for WriteOrigin
Auto Trait Implementations§
impl Forget for WriteOrigin
impl Freeze for WriteOrigin
impl RefUnwindSafe for WriteOrigin
impl Send for WriteOrigin
impl Sync for WriteOrigin
impl Unpin for WriteOrigin
impl UnsafeUnpin for WriteOrigin
impl UnwindSafe for WriteOrigin
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more