pub struct Facet {
pub contract: &'static Contract,
pub data: &'static (dyn Any + Send + Sync),
}Expand description
What a point’s declaration says for one capability contract: the
contract, and data only that contract’s crate reads (a journaled
mark, a codec). Made by the contract crate, in a const
(bus_contract_journal::JOURNALED,
bus_contract_crossing::relayable(&CODEC)), and carried by
PointDecl::facets and
PointSpec::facets. A point with a facet
needs its contract.
Fields§
§contract: &'static ContractThe contract the facet belongs to.
data: &'static (dyn Any + Send + Sync)What it says, read back by the contract’s crate (Facet::get).
Implementations§
Trait Implementations§
impl Copy for Facet
impl Eq for Facet
Auto Trait Implementations§
impl !RefUnwindSafe for Facet
impl !UnwindSafe for Facet
impl Forget for Facet
impl Freeze for Facet
impl Move for Facet
impl Send for Facet
impl Sync for Facet
impl Unpin for Facet
impl UnsafeUnpin for Facet
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