pub struct ReactorEntry {
pub name: &'static str,
pub constructor: fn() -> ReactorRegistration,
}Expand description
Reactor entry emitted by the #[reactor] attribute macro. The package!()
shell walks inventory::iter::<ReactorEntry> at FFI call time to produce
Vec<ReactorPackageMetadata> for get_reactor_metadata.
Fields§
§name: &'static str§constructor: fn() -> ReactorRegistrationTrait Implementations§
impl Collect for ReactorEntry
Auto Trait Implementations§
impl Freeze for ReactorEntry
impl RefUnwindSafe for ReactorEntry
impl Send for ReactorEntry
impl Sync for ReactorEntry
impl Unpin for ReactorEntry
impl UnsafeUnpin for ReactorEntry
impl UnwindSafe for ReactorEntry
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