Skip to main content

PluginRegistrar

Struct PluginRegistrar 

Source
pub struct PluginRegistrar<'a> { /* private fields */ }

Implementations§

Source§

impl PluginRegistrar<'_>

Source

pub fn register_archive_reachability_participant( &mut self, handler: PluginArchiveReachabilityParticipant, ) -> Result<(), CanwuError>

Source

pub fn register_owner_authorized_maintenance_participant( &mut self, handler: OwnerAuthorizedMaintenanceParticipant, ) -> Result<(), CanwuError>

Source

pub fn register_maintenance_dependency_resolver( &mut self, target_namespace: impl Into<String>, ) -> Result<(), CanwuError>

Source

pub fn register_record_schema( &mut self, schema: DomainRecordSchema, ) -> Result<(), CanwuError>

Source

pub fn register_knowledge_schema( &mut self, schema: PluginKnowledgeSchema, ) -> Result<(), CanwuError>

Source

pub fn register_schema(&mut self, schema: TypeSchema) -> Result<(), CanwuError>

Source

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.

Source

pub fn register_system( &mut self, contract: SystemContract, handler: SimulationSystemHandler, ) -> Result<(), CanwuError>

Source

pub fn register_boundary_system( &mut self, contract: BoundarySystemContract, handler: BoundarySystemHandler, ) -> Result<(), CanwuError>

Source

pub fn register_command( &mut self, descriptor: PluginActionDescriptor, handler: PluginCommandHandler, ) -> Result<(), CanwuError>

Source

pub fn register_ingress( &mut self, descriptor: PluginIngressDescriptor, ) -> Result<(), CanwuError>

Source

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.

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.