pub struct ComponentCapabilities {Show 15 fields
pub component: ComponentId,
pub contract: Option<&'static str>,
pub snapshot_schema: Option<&'static str>,
pub precision: &'static [Precision],
pub arithmetic: &'static [ArithmeticRequirement],
pub runtimes: &'static [RuntimeSupport],
pub endpoints: &'static [Endpoint],
pub regimes: &'static [RegimeSupport],
pub sources: &'static [SourceKind],
pub options: &'static [OptionSet],
pub nested: &'static [ComponentId],
pub attachable_to: &'static [ComponentId],
pub unsupported: &'static [Unsupported],
pub limits: &'static [Limit],
pub summary: Summary,
}Expand description
Everything one component admits, refuses and limits.
Fields§
§component: ComponentIdDeclaring component.
contract: Option<&'static str>Public numerical contract version, when the component has one.
snapshot_schema: Option<&'static str>Snapshot schema identity, when the component writes snapshots.
precision: &'static [Precision]Supported state precisions.
arithmetic: &'static [ArithmeticRequirement]Arithmetic properties the runtime must provide.
runtimes: &'static [RuntimeSupport]Standing on each runtime.
endpoints: &'static [Endpoint]Endpoints and their admitted boundary kinds.
regimes: &'static [RegimeSupport]Supported regimes per scope.
sources: &'static [SourceKind]Admitted local sources and sinks.
options: &'static [OptionSet]Options and their accepted values.
nested: &'static [ComponentId]Components that this component contains.
attachable_to: &'static [ComponentId]Components that this component attaches to.
unsupported: &'static [Unsupported]Capabilities the component does not support.
limits: &'static [Limit]Limits of the supported range.
summary: SummaryModel description.
Implementations§
Source§impl ComponentCapabilities
impl ComponentCapabilities
Sourcepub fn endpoint(&self, id: EndpointId) -> Option<&'static Endpoint>
pub fn endpoint(&self, id: EndpointId) -> Option<&'static Endpoint>
Returns the declared endpoint with identity id.
Sourcepub fn admits(&self, id: EndpointId, kind: BoundaryKind) -> bool
pub fn admits(&self, id: EndpointId, kind: BoundaryKind) -> bool
Returns true when endpoint id is declared and admits kind.
Sourcepub fn runtime(&self, runtime: RuntimeKind) -> Option<&'static RuntimeSupport>
pub fn runtime(&self, runtime: RuntimeKind) -> Option<&'static RuntimeSupport>
Returns the declared standing on runtime.
Sourcepub fn unsupported_by_id(&self, id: &str) -> Option<&'static Unsupported>
pub fn unsupported_by_id(&self, id: &str) -> Option<&'static Unsupported>
Returns the unsupported entry with id id.
Sourcepub fn limit_by_id(&self, id: &str) -> Option<&'static Limit>
pub fn limit_by_id(&self, id: &str) -> Option<&'static Limit>
Returns the limit with id id.
Trait Implementations§
Source§impl Clone for ComponentCapabilities
impl Clone for ComponentCapabilities
impl Copy for ComponentCapabilities
Source§impl Debug for ComponentCapabilities
impl Debug for ComponentCapabilities
impl Eq for ComponentCapabilities
Source§impl PartialEq for ComponentCapabilities
impl PartialEq for ComponentCapabilities
impl StructuralPartialEq for ComponentCapabilities
Auto Trait Implementations§
impl Forget for ComponentCapabilities
impl Freeze for ComponentCapabilities
impl Move for ComponentCapabilities
impl RefUnwindSafe for ComponentCapabilities
impl Send for ComponentCapabilities
impl Sync for ComponentCapabilities
impl Unpin for ComponentCapabilities
impl UnsafeUnpin for ComponentCapabilities
impl UnwindSafe for ComponentCapabilities
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.