pub struct SensingIndexProfile { /* private fields */ }Implementations§
Source§impl SensingIndexProfile
impl SensingIndexProfile
pub const fn native_v1() -> Self
pub fn new(kind: u16) -> Result<Self, RegistrationError>
pub const fn kind(self) -> u16
Sourcepub fn write_supported_kinds(
self,
other: &[u16],
output: &mut [u16],
) -> Result<usize, RegistrationError>
pub fn write_supported_kinds( self, other: &[u16], output: &mut [u16], ) -> Result<usize, RegistrationError>
other contains only other extensions. All refusals precede writes;
repeated kinds, built-ins and competing assignments are rejected.
pub fn pack( self, container_id: [u8; 16], index_field_id: u64, raw_field_prefix: &[u8], records: &[MeasurementRecord], output: &mut [u8], ) -> Result<PackedSensingIndex, SensingContainerError>
pub fn open<'r, 'data, 'fields>( self, resolver: &'r TypedPayloadResolver<'data, 'fields>, index_field_id: u64, container_id: [u8; 16], ) -> Result<SensingIndexView<'r, 'data, 'fields>, SensingContainerError>
Sourcepub fn resolve<'data, 'fields>(
self,
data: &'data [u8],
other_extensions: &[u16],
field_scratch: &mut [TypedFieldRecord],
fields: &'fields mut [TypedFieldRecord],
) -> Result<TypedPayloadResolver<'data, 'fields>, ProfileResolverError>
pub fn resolve<'data, 'fields>( self, data: &'data [u8], other_extensions: &[u16], field_scratch: &mut [TypedFieldRecord], fields: &'fields mut [TypedFieldRecord], ) -> Result<TypedPayloadResolver<'data, 'fields>, ProfileResolverError>
The temporary allow-list is not retained by the checked resolver.
Trait Implementations§
Source§impl Clone for SensingIndexProfile
impl Clone for SensingIndexProfile
impl Copy for SensingIndexProfile
Source§impl Debug for SensingIndexProfile
impl Debug for SensingIndexProfile
impl Eq for SensingIndexProfile
Source§impl PartialEq for SensingIndexProfile
impl PartialEq for SensingIndexProfile
impl StructuralPartialEq for SensingIndexProfile
Auto Trait Implementations§
impl Freeze for SensingIndexProfile
impl RefUnwindSafe for SensingIndexProfile
impl Send for SensingIndexProfile
impl Sync for SensingIndexProfile
impl Unpin for SensingIndexProfile
impl UnsafeUnpin for SensingIndexProfile
impl UnwindSafe for SensingIndexProfile
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<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