pub struct PreparedField<'m, 'e, 's> { /* private fields */ }Expand description
Planning/storage fields borrow caller metadata/entry arenas and immutable source payloads. No reference to mutable payload staging escapes this prepare step.
Implementations§
Source§impl PreparedField<'_, '_, '_>
impl PreparedField<'_, '_, '_>
pub fn encoded_len(&self) -> Result<usize, Error>
Sourcepub fn encode_into<'out>(
&self,
staging: &mut [u8],
output: &'out mut [u8],
scratch: &mut Scratch<'_>,
) -> Result<&'out mut [u8], Error>
pub fn encode_into<'out>( &self, staging: &mut [u8], output: &'out mut [u8], scratch: &mut Scratch<'_>, ) -> Result<&'out mut [u8], Error>
Staging may change on error; the ENTIRE final output remains unchanged. All source chunks are immutable; every selected chunk is verified/admitted before the one final copy. Any extra output tail is retained on success.
Auto Trait Implementations§
impl<'m, 'e, 's> Freeze for PreparedField<'m, 'e, 's>
impl<'m, 'e, 's> RefUnwindSafe for PreparedField<'m, 'e, 's>
impl<'m, 'e, 's> Send for PreparedField<'m, 'e, 's>
impl<'m, 'e, 's> Sync for PreparedField<'m, 'e, 's>
impl<'m, 'e, 's> Unpin for PreparedField<'m, 'e, 's>
impl<'m, 'e, 's> UnsafeUnpin for PreparedField<'m, 'e, 's>
impl<'m, 'e, 's> UnwindSafe for PreparedField<'m, 'e, 's>
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