pub trait SpannedCapabilityClause:
Clone
+ PartialEq
+ Debug {
// Required methods
fn service(&self) -> Option<OneOrMany<&BorrowedName>>;
fn protocol(&self) -> Option<OneOrMany<&BorrowedName>>;
fn directory(&self) -> Option<OneOrMany<&BorrowedName>>;
fn storage(&self) -> Option<OneOrMany<&BorrowedName>>;
fn runner(&self) -> Option<OneOrMany<&BorrowedName>>;
fn resolver(&self) -> Option<OneOrMany<&BorrowedName>>;
fn event_stream(&self) -> Option<OneOrMany<&BorrowedName>>;
fn dictionary(&self) -> Option<OneOrMany<&BorrowedName>>;
fn config(&self) -> Option<OneOrMany<&BorrowedName>>;
fn decl_type(&self) -> &'static str;
fn supported(&self) -> &[&'static str];
// Provided method
fn capability_type(&self) -> Result<&'static str, Error> { ... }
}Required Methods§
fn service(&self) -> Option<OneOrMany<&BorrowedName>>
fn protocol(&self) -> Option<OneOrMany<&BorrowedName>>
fn directory(&self) -> Option<OneOrMany<&BorrowedName>>
fn storage(&self) -> Option<OneOrMany<&BorrowedName>>
fn runner(&self) -> Option<OneOrMany<&BorrowedName>>
fn resolver(&self) -> Option<OneOrMany<&BorrowedName>>
fn event_stream(&self) -> Option<OneOrMany<&BorrowedName>>
fn dictionary(&self) -> Option<OneOrMany<&BorrowedName>>
fn config(&self) -> Option<OneOrMany<&BorrowedName>>
fn decl_type(&self) -> &'static str
fn supported(&self) -> &[&'static str]
Provided Methods§
Sourcefn capability_type(&self) -> Result<&'static str, Error>
fn capability_type(&self) -> Result<&'static str, Error>
Returns the name of the capability for display purposes.
If service() returns Some, the capability name must be “service”, etc.
Returns an error if the capability name is not set, or if there is more than one.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.