pub struct PluginRegistrar<'a> { /* private fields */ }Implementations§
Source§impl PluginRegistrar<'_>
impl PluginRegistrar<'_>
pub fn register_archive_reachability_participant( &mut self, handler: PluginArchiveReachabilityParticipant, ) -> Result<(), CanwuError>
pub fn register_maintenance_dependency_resolver( &mut self, target_namespace: impl Into<String>, ) -> Result<(), CanwuError>
pub fn register_record_schema( &mut self, schema: DomainRecordSchema, ) -> Result<(), CanwuError>
pub fn register_knowledge_schema( &mut self, schema: PluginKnowledgeSchema, ) -> Result<(), CanwuError>
pub fn register_schema(&mut self, schema: TypeSchema) -> Result<(), CanwuError>
Sourcepub fn register_event_audience(
&mut self,
event_type: impl Into<String>,
audience: EventAudience,
) -> Result<(), CanwuError>
pub fn register_event_audience( &mut self, event_type: impl Into<String>, audience: EventAudience, ) -> Result<(), CanwuError>
Declares the player-facing audience for one emitted plugin event type.
This policy is persisted in the plugin descriptor and is independent from the plugin system subscription graph. Event types without a declaration remain private to player-facing projections.
pub fn register_system( &mut self, contract: SystemContract, handler: SimulationSystemHandler, ) -> Result<(), CanwuError>
pub fn register_boundary_system( &mut self, contract: BoundarySystemContract, handler: BoundarySystemHandler, ) -> Result<(), CanwuError>
pub fn register_command( &mut self, descriptor: PluginActionDescriptor, handler: PluginCommandHandler, ) -> Result<(), CanwuError>
pub fn register_ingress( &mut self, descriptor: PluginIngressDescriptor, ) -> Result<(), CanwuError>
Sourcepub fn register_internal_ingress(
&mut self,
descriptor: PluginIngressDescriptor,
) -> Result<PluginIngressPermit, CanwuError>
pub fn register_internal_ingress( &mut self, descriptor: PluginIngressDescriptor, ) -> Result<PluginIngressPermit, CanwuError>
Registers an ingress that cannot be authored through the ordinary host API and returns the opaque capability required to enqueue it.
Sourcepub fn register_internal_ingress_with_archive_retention(
&mut self,
descriptor: PluginIngressDescriptor,
namespace: impl Into<String>,
object_id_json_pointers: Vec<String>,
) -> Result<PluginIngressPermit, CanwuError>
pub fn register_internal_ingress_with_archive_retention( &mut self, descriptor: PluginIngressDescriptor, namespace: impl Into<String>, object_id_json_pointers: Vec<String>, ) -> Result<PluginIngressPermit, CanwuError>
Registers an internal ingress whose single retained archive root must equal every declared JSON-pointer field in its payload.
Auto Trait Implementations§
impl<'a> !UnwindSafe for PluginRegistrar<'a>
impl<'a> Freeze for PluginRegistrar<'a>
impl<'a> RefUnwindSafe for PluginRegistrar<'a>
impl<'a> Send for PluginRegistrar<'a>
impl<'a> Sync for PluginRegistrar<'a>
impl<'a> Unpin for PluginRegistrar<'a>
impl<'a> UnsafeUnpin for PluginRegistrar<'a>
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