pub enum InvalidationReason {
Scroll,
DisplayChange,
SessionEnd,
Ttl,
Cleared,
Unknown(String),
}Expand description
Why an annotation was invalidated.
Variants§
Scroll
Content moved under the annotation.
In 0.1 a scroll invalidates every annotation on that display. Later versions translate annotations with the scroll and only invalidate when they cannot.
DisplayChange
A display was added, removed, or reconfigured.
SessionEnd
The owning session ended, or its socket disconnected.
Ttl
The annotation’s time to live expired.
Cleared
The user cleared it, from the menu bar or the global hotkey.
Distinct from session_end because the client did not ask for it and may want to
say so. The clear affordance belongs to the user, not to the agent driving.
Unknown(String)
A reason introduced by a newer daemon than this build knows about.
Trait Implementations§
Source§impl Clone for InvalidationReason
impl Clone for InvalidationReason
Source§fn clone(&self) -> InvalidationReason
fn clone(&self) -> InvalidationReason
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 InvalidationReason
impl Debug for InvalidationReason
Source§impl<'de> Deserialize<'de> for InvalidationReason
impl<'de> Deserialize<'de> for InvalidationReason
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
impl Eq for InvalidationReason
Source§impl PartialEq for InvalidationReason
impl PartialEq for InvalidationReason
Source§impl Serialize for InvalidationReason
impl Serialize for InvalidationReason
impl StructuralPartialEq for InvalidationReason
Auto Trait Implementations§
impl Freeze for InvalidationReason
impl RefUnwindSafe for InvalidationReason
impl Send for InvalidationReason
impl Sync for InvalidationReason
impl Unpin for InvalidationReason
impl UnsafeUnpin for InvalidationReason
impl UnwindSafe for InvalidationReason
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