pub struct PackMetadataRegistry { /* private fields */ }Expand description
Pack metadata with no executable registry capability.
ⓘ
fn dispatch(metadata: &khive_runtime::PackMetadataRegistry) {
metadata.dispatch("telemetry.emit", serde_json::json!({}));
}Implementations§
Source§impl PackMetadataRegistry
impl PackMetadataRegistry
pub fn has_verb(&self, verb: &str) -> bool
pub fn describe_verb(&self, verb: &str) -> Result<Value, RuntimeError>
pub fn all_handlers_with_names(&self) -> Vec<(&str, &'static HandlerDef)>
pub fn all_verbs(&self) -> Vec<&'static HandlerDef>
pub fn pack_names(&self) -> Vec<&str>
pub fn pack_requires(&self, name: &str) -> Option<&'static [&'static str]>
pub fn pack_note_kinds(&self, name: &str) -> Option<&'static [&'static str]>
pub fn pack_entity_kinds(&self, name: &str) -> Option<&'static [&'static str]>
pub fn pack_verbs(&self, name: &str) -> Option<&'static [HandlerDef]>
pub fn all_entity_kinds(&self) -> Vec<&'static str>
pub fn all_note_kinds(&self) -> Vec<&'static str>
pub fn all_edge_rules(&self) -> Vec<EdgeEndpointRule>
Auto Trait Implementations§
impl !RefUnwindSafe for PackMetadataRegistry
impl !UnwindSafe for PackMetadataRegistry
impl Freeze for PackMetadataRegistry
impl Send for PackMetadataRegistry
impl Sync for PackMetadataRegistry
impl Unpin for PackMetadataRegistry
impl UnsafeUnpin for PackMetadataRegistry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more