Struct PixelReceipt
pub struct PixelReceipt {
pub version: u16,
pub status: PixelReceiptStatus,
pub adapter_backed: bool,
pub observed: bool,
pub width: u32,
pub height: u32,
pub format: PixelFormat,
pub byte_len: u64,
pub content_hash: u64,
pub nonzero_bytes: u32,
}Expand description
Bounded evidence for a pixel readback. Pixel bytes are deliberately omitted.
Fields§
§version: u16§status: PixelReceiptStatus§adapter_backed: bool§observed: bool§width: u32§height: u32§format: PixelFormat§byte_len: u64§content_hash: u64§nonzero_bytes: u32Implementations§
§impl PixelReceipt
impl PixelReceipt
pub fn refusal(
status: PixelReceiptStatus,
width: u32,
height: u32,
adapter_backed: bool,
) -> PixelReceipt
pub fn refusal( status: PixelReceiptStatus, width: u32, height: u32, adapter_backed: bool, ) -> PixelReceipt
Constructs a refusal receipt with zero observed bytes.
Trait Implementations§
§impl Clone for PixelReceipt
impl Clone for PixelReceipt
§fn clone(&self) -> PixelReceipt
fn clone(&self) -> PixelReceipt
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 Copy for PixelReceipt
§impl Debug for PixelReceipt
impl Debug for PixelReceipt
§impl<'de> Deserialize<'de> for PixelReceipt
impl<'de> Deserialize<'de> for PixelReceipt
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PixelReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PixelReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PixelReceipt
§impl PartialEq for PixelReceipt
impl PartialEq for PixelReceipt
§impl Serialize for PixelReceipt
impl Serialize for PixelReceipt
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PixelReceipt
Auto Trait Implementations§
impl Freeze for PixelReceipt
impl RefUnwindSafe for PixelReceipt
impl Send for PixelReceipt
impl Sync for PixelReceipt
impl Unpin for PixelReceipt
impl UnsafeUnpin for PixelReceipt
impl UnwindSafe for PixelReceipt
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more