pub struct RecordedSubscription {
pub handler: u32,
pub filter: EventFilter,
}Expand description
One subscription a plugin declared through events.subscribe, recorded
verbatim (the guest-chosen handler id + the WIT filter). The host drains
these after register-events returns and wires each to the native
EventBus (PH7.8c); the filter projects to native at wire time via
boundary_event::project_event_filter.
Fields§
§handler: u32The guest’s own dispatch key — passed back to on-event(handler, ev).
filter: EventFilterThe declarative filter the plugin subscribed with (WIT form; projected to
the native EventFilter when wired to the bus).
Auto Trait Implementations§
impl Freeze for RecordedSubscription
impl RefUnwindSafe for RecordedSubscription
impl Send for RecordedSubscription
impl Sync for RecordedSubscription
impl Unpin for RecordedSubscription
impl UnsafeUnpin for RecordedSubscription
impl UnwindSafe for RecordedSubscription
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