pub struct SensingIndexView<'r, 'data, 'fields> { /* private fields */ }Expand description
Borrowed index and raw payload resolver for the same checked envelope. The host still authenticates the container and field semantic pairing.
Implementations§
Source§impl<'r, 'data, 'fields> SensingIndexView<'r, 'data, 'fields>
impl<'r, 'data, 'fields> SensingIndexView<'r, 'data, 'fields>
pub fn open( resolver: &'r TypedPayloadResolver<'data, 'fields>, index_field_id: u64, extension_kind: u16, container_id: [u8; 16], ) -> Result<Self, SensingContainerError>
pub fn count(&self) -> usize
Sourcepub fn field_id(&self, index: usize) -> Result<u64, SensingContainerError>
pub fn field_id(&self, index: usize) -> Result<u64, SensingContainerError>
Untrusted row selector for locating the caller’s semantic declaration.
Canonical payload binding is checked only by record.
Sourcepub fn record(
&self,
index: usize,
physical: PhysicalFieldSemantics,
) -> Result<MeasurementRecord, SensingContainerError>
pub fn record( &self, index: usize, physical: PhysicalFieldSemantics, ) -> Result<MeasurementRecord, SensingContainerError>
Decode a row with raw bytes resolved from this same envelope. A row is not published until its entire canonical encoding matches that binding.
Sourcepub fn resolve_record(
&self,
index: usize,
physical: PhysicalFieldSemantics,
) -> Result<ResolvedSensingMeasurement<'data>, SensingContainerError>
pub fn resolve_record( &self, index: usize, physical: PhysicalFieldSemantics, ) -> Result<ResolvedSensingMeasurement<'data>, SensingContainerError>
Resolve a canonical index row and borrow its raw payload from this same envelope. No second resolver or caller-supplied byte slice is accepted.
Auto Trait Implementations§
impl<'r, 'data, 'fields> Freeze for SensingIndexView<'r, 'data, 'fields>
impl<'r, 'data, 'fields> RefUnwindSafe for SensingIndexView<'r, 'data, 'fields>
impl<'r, 'data, 'fields> Send for SensingIndexView<'r, 'data, 'fields>
impl<'r, 'data, 'fields> Sync for SensingIndexView<'r, 'data, 'fields>
impl<'r, 'data, 'fields> Unpin for SensingIndexView<'r, 'data, 'fields>
impl<'r, 'data, 'fields> UnsafeUnpin for SensingIndexView<'r, 'data, 'fields>
impl<'r, 'data, 'fields> UnwindSafe for SensingIndexView<'r, 'data, 'fields>
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
§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