pub struct ArtifactRef<'a> {
pub format: ArtifactFormat,
pub target: TargetIdentity,
pub payload: &'a dyn ByteSource,
pub resident_bytes: u64,
}Expand description
Borrowed program artifact envelope.
Payload bytes may be segmented; providers should stream them into final resident storage or use
ByteSource::as_contiguous when a borrowed slice is available. resident_bytes is the
caller-authorized upper bound for all provider storage retained by the returned program; a
provider must reject the artifact if it cannot stay within that charge.
Fields§
§format: ArtifactFormat§target: TargetIdentity§payload: &'a dyn ByteSource§resident_bytes: u64Trait Implementations§
Source§impl<'a> Clone for ArtifactRef<'a>
impl<'a> Clone for ArtifactRef<'a>
Source§fn clone(&self) -> ArtifactRef<'a>
fn clone(&self) -> ArtifactRef<'a>
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 moreimpl<'a> Copy for ArtifactRef<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ArtifactRef<'a>
impl<'a> !Send for ArtifactRef<'a>
impl<'a> !Sync for ArtifactRef<'a>
impl<'a> !UnwindSafe for ArtifactRef<'a>
impl<'a> Freeze for ArtifactRef<'a>
impl<'a> Unpin for ArtifactRef<'a>
impl<'a> UnsafeUnpin for ArtifactRef<'a>
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