pub struct BinaryReference { /* private fields */ }Expand description
A staged reusable executable and its canonical artifact contract.
Implementations§
Source§impl BinaryReference
impl BinaryReference
Sourcepub fn from_source(
path: BundlePath,
contract: ParticipantContract,
source: &BinarySource,
) -> Result<Self, BundleError>
pub fn from_source( path: BundlePath, contract: ParticipantContract, source: &BinarySource, ) -> Result<Self, BundleError>
Construct a reference for an already-built executable source.
pub const fn path(&self) -> &BundlePath
pub const fn digest(&self) -> Sha256Digest
pub const fn size_bytes(&self) -> u64
pub const fn contract(&self) -> &ParticipantContract
Trait Implementations§
Source§impl Clone for BinaryReference
impl Clone for BinaryReference
Source§fn clone(&self) -> BinaryReference
fn clone(&self) -> BinaryReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryReference
impl Debug for BinaryReference
Source§impl DescribeWire for BinaryReference
impl DescribeWire for BinaryReference
Source§fn wire_schema() -> WireSchema
fn wire_schema() -> WireSchema
The shape a value of this type puts on the wire.
Source§impl<'de> Deserialize<'de> for BinaryReference
impl<'de> Deserialize<'de> for BinaryReference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BinaryReference
impl RefUnwindSafe for BinaryReference
impl Send for BinaryReference
impl Sync for BinaryReference
impl Unpin for BinaryReference
impl UnsafeUnpin for BinaryReference
impl UnwindSafe for BinaryReference
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