pub struct ProgramFixture { /* private fields */ }Expand description
Provider artifact accepted by the backend under test.
Implementations§
Source§impl ProgramFixture
impl ProgramFixture
Sourcepub fn new(
format: ArtifactFormat,
target: TargetIdentity,
payload: impl Into<Vec<u8>>,
resident_bytes: u64,
) -> Result<Self, TargetDescriptionError>
pub fn new( format: ArtifactFormat, target: TargetIdentity, payload: impl Into<Vec<u8>>, resident_bytes: u64, ) -> Result<Self, TargetDescriptionError>
Build one owned provider artifact fixture.
pub const fn format(&self) -> ArtifactFormat
pub const fn target(&self) -> TargetIdentity
pub fn payload(&self) -> &[u8] ⓘ
pub const fn resident_bytes(&self) -> u64
Trait Implementations§
Source§impl Clone for ProgramFixture
impl Clone for ProgramFixture
Source§fn clone(&self) -> ProgramFixture
fn clone(&self) -> ProgramFixture
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 ProgramFixture
impl Debug for ProgramFixture
impl Eq for ProgramFixture
Source§impl PartialEq for ProgramFixture
impl PartialEq for ProgramFixture
Source§fn eq(&self, other: &ProgramFixture) -> bool
fn eq(&self, other: &ProgramFixture) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProgramFixture
Auto Trait Implementations§
impl Freeze for ProgramFixture
impl RefUnwindSafe for ProgramFixture
impl Send for ProgramFixture
impl Sync for ProgramFixture
impl Unpin for ProgramFixture
impl UnsafeUnpin for ProgramFixture
impl UnwindSafe for ProgramFixture
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