pub struct Authority {
pub origin: BlockOrigin,
pub capabilities: AssemblyCapabilities,
}Expand description
Who a hook is, and what it may therefore do.
Fields§
§origin: BlockOrigin§capabilities: AssemblyCapabilitiesImplementations§
Source§impl Authority
impl Authority
Sourcepub fn local(origin: BlockOrigin) -> Self
pub fn local(origin: BlockOrigin) -> Self
A hook from something the operator wrote or configured. Unrestricted: it can do what they could have done by hand, because it is them.
Sourcepub fn plugin(
name: impl Into<String>,
capabilities: AssemblyCapabilities,
) -> Self
pub fn plugin( name: impl Into<String>, capabilities: AssemblyCapabilities, ) -> Self
A hook from an installed plugin, with whatever it declared at install time and nothing more.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Authority
impl Freeze for Authority
impl Move for Authority
impl RefUnwindSafe for Authority
impl Send for Authority
impl Sync for Authority
impl Unpin for Authority
impl UnsafeUnpin for Authority
impl UnwindSafe for Authority
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