ContextCapabilityClause

Trait ContextCapabilityClause 

Source
pub trait ContextCapabilityClause {
Show 14 methods // Required methods fn service(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>; fn protocol(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>; fn directory(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>; fn storage(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>; fn runner(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>; fn resolver(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>; fn dictionary(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>; fn config(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>; fn event_stream(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>; fn are_many_names_allowed(&self) -> bool; fn decl_type(&self) -> &'static str; fn supported(&self) -> &[&'static str]; // Provided methods fn capability_type( &self, origin: Option<Origin>, ) -> Result<&'static str, Error> { ... } fn names(&self) -> Vec<&BorrowedName> { ... }
}

Required Methods§

Provided Methods§

Source

fn capability_type(&self, origin: Option<Origin>) -> Result<&'static str, Error>

Source

fn names(&self) -> Vec<&BorrowedName>

Returns the names of the capabilities in this clause. If protocol() returns Some(OneOrMany::Many(vec!["a", "b"])), this returns![“a”, “b”].

Implementors§