pub struct Q42AuthenticatedRangeSource<'r, 'a> { /* private fields */ }Expand description
A Q42 range source over a bounded, ordered set of already authenticated bytes from one selected plaintext entry. Gaps are permitted in the collection, but reads crossing a gap fail before touching the output.
Implementations§
Source§impl<'r, 'a> Q42AuthenticatedRangeSource<'r, 'a>
impl<'r, 'a> Q42AuthenticatedRangeSource<'r, 'a>
Sourcepub fn new(
selected: SelectedPlainEntry<'a>,
ranges: &'r [AuthenticatedRange<'a>],
declared_length: u64,
max_ranges: usize,
) -> Result<Self, FormatError>
pub fn new( selected: SelectedPlainEntry<'a>, ranges: &'r [AuthenticatedRange<'a>], declared_length: u64, max_ranges: usize, ) -> Result<Self, FormatError>
Bind a caller-bounded collection to the selected entry and its exact
logical length. Ranges must be ordered, nonempty, nonoverlapping, and
within that entry. max_ranges is a caller policy bound, not a memory
reservation.
pub const fn selected(&self) -> SelectedPlainEntry<'a>
Trait Implementations§
Source§impl Q42RangeSource for Q42AuthenticatedRangeSource<'_, '_>
impl Q42RangeSource for Q42AuthenticatedRangeSource<'_, '_>
Auto Trait Implementations§
impl<'r, 'a> Freeze for Q42AuthenticatedRangeSource<'r, 'a>
impl<'r, 'a> RefUnwindSafe for Q42AuthenticatedRangeSource<'r, 'a>
impl<'r, 'a> Send for Q42AuthenticatedRangeSource<'r, 'a>
impl<'r, 'a> Sync for Q42AuthenticatedRangeSource<'r, 'a>
impl<'r, 'a> Unpin for Q42AuthenticatedRangeSource<'r, 'a>
impl<'r, 'a> UnsafeUnpin for Q42AuthenticatedRangeSource<'r, 'a>
impl<'r, 'a> UnwindSafe for Q42AuthenticatedRangeSource<'r, 'a>
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