pub struct MultibufferViewContributions {
pub specs: Vec<MultibufferViewSpec>,
}Expand description
The specs a guest declared during register-multibuffer-views.
Recorded on the plugin’s PluginState and drained by the spawn after the
export returns — the PickerContributions shape, for its reason: the guest
calls a host import N times and the host collects, rather than the component
being one view.
Fields§
§specs: Vec<MultibufferViewSpec>Implementations§
Source§impl MultibufferViewContributions
impl MultibufferViewContributions
Sourcepub fn declare(&mut self, spec: MultibufferViewSpec)
pub fn declare(&mut self, spec: MultibufferViewSpec)
Record one declared view.
A second registration under an id this same plugin already used
replaces it — that is a reload, not a collision. Two different
plugins claiming one id is resolved where the provider registry can see
both (plugin_view.rs), because only there is the other claimant known.
Trait Implementations§
Source§impl Debug for MultibufferViewContributions
impl Debug for MultibufferViewContributions
Source§impl Default for MultibufferViewContributions
impl Default for MultibufferViewContributions
Source§fn default() -> MultibufferViewContributions
fn default() -> MultibufferViewContributions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultibufferViewContributions
impl RefUnwindSafe for MultibufferViewContributions
impl Send for MultibufferViewContributions
impl Sync for MultibufferViewContributions
impl Unpin for MultibufferViewContributions
impl UnsafeUnpin for MultibufferViewContributions
impl UnwindSafe for MultibufferViewContributions
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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