pub struct ProtectedPublisher<'a, 's, 'm, 'r> { /* private fields */ }Implementations§
Source§impl ProtectedPublisher<'_, '_, '_, '_>
impl ProtectedPublisher<'_, '_, '_, '_>
pub fn finish( &mut self, out: &mut [u8], sink: &mut impl CandidateSink, ) -> Result<ProtectedCandidate, E>
Sourcepub fn sign_candidate(
&mut self,
descriptor: &[u8],
request: PairedSigningRequest<'_>,
workspace: &mut Workspace,
sink: &mut impl CandidateSink,
) -> Result<(), E>
pub fn sign_candidate( &mut self, descriptor: &[u8], request: PairedSigningRequest<'_>, workspace: &mut Workspace, sink: &mut impl CandidateSink, ) -> Result<(), E>
A signed candidate remains unrecognized until actual publisher pin and application-policy verification; this is not durable/public promotion.
Source§impl<'a, 's, 'm, 'r> ProtectedPublisher<'a, 's, 'm, 'r>
impl<'a, 's, 'm, 'r> ProtectedPublisher<'a, 's, 'm, 'r>
Sourcepub fn bind(
geometry: PreparedGeometry<'a, 's>,
publication: ManagedObjectPublication<'m>,
context: Context<'m>,
roots: &'r mut [RootRow],
refs: &'r mut [PageRef],
) -> Result<Self, PublisherError>
pub fn bind( geometry: PreparedGeometry<'a, 's>, publication: ManagedObjectPublication<'m>, context: Context<'m>, roots: &'r mut [RootRow], refs: &'r mut [PageRef], ) -> Result<Self, PublisherError>
Context is borrowed from separate frozen caller storage, never from a movable buffer inside this owner. No application authority is admitted.
pub fn is_poisoned(&self) -> bool
pub fn stage_header( &mut self, sink: &mut impl CandidateSink, ) -> Result<(), PublisherError>
Source§impl ProtectedPublisher<'_, '_, '_, '_>
impl ProtectedPublisher<'_, '_, '_, '_>
pub fn seal_next_object( &mut self, scratch: &mut [u8], sink: &mut impl CandidateSink, ) -> Result<(), E>
pub fn seal_metadata( &mut self, refs: PrivateReferences, private_scratch: &mut [u8], leaf_scratch: &mut [u8], sink: &mut impl CandidateSink, ) -> Result<(), E>
Trait Implementations§
Source§impl Drop for ProtectedPublisher<'_, '_, '_, '_>
impl Drop for ProtectedPublisher<'_, '_, '_, '_>
Auto Trait Implementations§
impl<'a, 's, 'm, 'r> !RefUnwindSafe for ProtectedPublisher<'a, 's, 'm, 'r>
impl<'a, 's, 'm, 'r> !Send for ProtectedPublisher<'a, 's, 'm, 'r>
impl<'a, 's, 'm, 'r> !Sync for ProtectedPublisher<'a, 's, 'm, 'r>
impl<'a, 's, 'm, 'r> !UnwindSafe for ProtectedPublisher<'a, 's, 'm, 'r>
impl<'a, 's, 'm, 'r> Freeze for ProtectedPublisher<'a, 's, 'm, 'r>
impl<'a, 's, 'm, 'r> Unpin for ProtectedPublisher<'a, 's, 'm, 'r>
impl<'a, 's, 'm, 'r> UnsafeUnpin for ProtectedPublisher<'a, 's, 'm, 'r>
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