pub struct HooksManifest {
pub extension: String,
pub hooks: Vec<HookEntry>,
pub resource_types: IndexMap<ResourceType, ResourceTypeDescriptor>,
}Expand description
The hooks a module declares, as its alien_hooks_manifest export returns them.
The runtime reads it once per module, at load, so a host can route each call to a hook without running the module first.
Fields§
§extension: StringThe extension’s name, as errors from its hooks show it
hooks: Vec<HookEntry>The hooks, in the order the extension registered them, which is the order modifiers run in
resource_types: IndexMap<ResourceType, ResourceTypeDescriptor>The resource types the extension declares, with what the module knows of each: every
field but controllerPlatforms, which the controller binary lists
Trait Implementations§
Source§impl Clone for HooksManifest
impl Clone for HooksManifest
Source§impl Debug for HooksManifest
impl Debug for HooksManifest
Source§impl<'de> Deserialize<'de> for HooksManifest
impl<'de> Deserialize<'de> for HooksManifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HooksManifest
impl PartialEq for HooksManifest
Source§impl Serialize for HooksManifest
impl Serialize for HooksManifest
impl StructuralPartialEq for HooksManifest
Auto Trait Implementations§
impl Forget for HooksManifest
impl Freeze for HooksManifest
impl Move for HooksManifest
impl RefUnwindSafe for HooksManifest
impl Send for HooksManifest
impl Sync for HooksManifest
impl Unpin for HooksManifest
impl UnsafeUnpin for HooksManifest
impl UnwindSafe for HooksManifest
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