pub struct CapabilityEntry {
pub name: CapName,
pub docs: String,
pub owner: FeatureName,
pub id: CapId,
pub refines: Option<CapId>,
pub default: bool,
pub table: Option<TableId>,
pub external: bool,
pub unprovided: Option<String>,
/* private fields */
}Expand description
One capability as the registry holds it, whether it was declared on its own or together with a table.
Every table’s name is also a capability, the capability of the table having
been written; the registry holds both kinds in one list, and
table tells them apart.
Fields§
§name: CapNameThe capability’s name.
docs: StringDocumentation prose from the declaration.
owner: FeatureNameThe feature that declared it.
id: CapIdThis capability’s number in this registry.
refines: Option<CapId>The capability this one refines (is a stronger form of), if any.
default: boolWhether this is the default refinement of its parent: the refinement that a demand for the parent alone selects when nothing else decides.
table: Option<TableId>The table whose capability this is, or None for a capability declared
on its own.
external: boolWhether that table is external: no stage writes it, and only the value the caller installs when a run is constructed satisfies this capability.
unprovided: Option<String>What a plan error says when a plan needs this capability and no
registered stage provides it, from the declaration
(CapabilityDef::unprovided); None
for a table’s capability.
Implementations§
Source§impl CapabilityEntry
impl CapabilityEntry
Sourcepub fn ancestors(&self) -> &[CapId]
pub fn ancestors(&self) -> &[CapId]
This capability, followed by the chain of capabilities it refines, the nearest first.
Providing this capability provides every capability in the chain;
a stage’s provides therefore includes the whole
chain of each capability it provides.
Sourcepub fn refinements(&self) -> &[CapId]
pub fn refinements(&self) -> &[CapId]
The capabilities that refine this one directly, in identifier order; their own refinements are not included.
Trait Implementations§
Source§impl Clone for CapabilityEntry
impl Clone for CapabilityEntry
Auto Trait Implementations§
impl Forget for CapabilityEntry
impl Freeze for CapabilityEntrywhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<CapId>: Freeze,
impl Move for CapabilityEntry
impl RefUnwindSafe for CapabilityEntry
impl Send for CapabilityEntry
impl Sync for CapabilityEntry
impl Unpin for CapabilityEntry
impl UnsafeUnpin for CapabilityEntrywhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<CapId>: UnsafeUnpin,
impl UnwindSafe for CapabilityEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more