Struct Facet
pub struct Facet {
pub contract: &'static Contract,
pub data: &'static (dyn Any + Sync + Send),
}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 + Sync + Send)What it says, read back by the contract’s crate (Facet::get).
Implementations§
Trait Implementations§
§impl PartialEq for Facet
Two facets are the same when they belong to the same contract and
carry data of the same type.
impl PartialEq for Facet
Two facets are the same when they belong to the same contract and carry data of the same type.
impl Copy for Facet
impl Eq for Facet
Auto Trait Implementations§
impl Freeze for Facet
impl !RefUnwindSafe for Facet
impl Send for Facet
impl Sync for Facet
impl Unpin for Facet
impl UnsafeUnpin for Facet
impl !UnwindSafe 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