pub struct PickerOpened {
pub source_id: String,
pub ts: SystemTime,
}Expand description
Fired when a picker opens (:picker <source>). Carries
the source id so subscribers can react to specific
surfaces (e.g. a plugin that wants to inject extra
candidates into :picker grep when it sees the open).
Less load-bearing than PickerAccepted – shipped for
symmetry + the introspection surface (:describe-events
shows what an editor can observe). No first-party
subscribers today.
Fields§
§source_id: String§ts: SystemTimeTrait Implementations§
Source§impl Clone for PickerOpened
impl Clone for PickerOpened
Source§fn clone(&self) -> PickerOpened
fn clone(&self) -> PickerOpened
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 PickerOpened
impl Debug for PickerOpened
Source§impl Event for PickerOpened
impl Event for PickerOpened
Source§fn event_type_id(&self) -> EventTypeId
fn event_type_id(&self) -> EventTypeId
The type-id under which this event is registered.
Implementors typically delegate to a
static to avoid
re-allocating the metadata on every call. The macro
register_event! generates this for you.Auto Trait Implementations§
impl Freeze for PickerOpened
impl RefUnwindSafe for PickerOpened
impl Send for PickerOpened
impl Sync for PickerOpened
impl Unpin for PickerOpened
impl UnsafeUnpin for PickerOpened
impl UnwindSafe for PickerOpened
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