pub struct MixedHmc { /* private fields */ }Expand description
Published mixed HMC plus the closure material tests need for select_entry.
Implementations§
Source§impl MixedHmc
impl MixedHmc
pub fn source(&self) -> &[u8] ⓘ
pub fn body(&self) -> &[u8] ⓘ
pub fn entry_page(&self) -> &[u8] ⓘ
pub fn identity(&self) -> CandidateIdentity
pub fn entry_id(&self, i: usize) -> u32
pub fn family(&self, i: usize) -> EntryFamily
pub fn role(&self, i: usize) -> RepresentationClass
pub fn obligation(&self, i: usize) -> Obligation
Sourcepub fn payload(&self, i: usize) -> &[u8] ⓘ
pub fn payload(&self, i: usize) -> &[u8] ⓘ
Original inner bytes passed to publish_mixed, not a filename.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn index_of(&self, id: u32) -> Option<usize>
Sourcepub fn installed(
&self,
purpose: &[u8],
) -> Result<(PinAuthority, LocalBootstrap, PinHandle, PinHandle), MixedError>
pub fn installed( &self, purpose: &[u8], ) -> Result<(PinAuthority, LocalBootstrap, PinHandle, PinHandle), MixedError>
Install the Scene/Fixture pins used by select_entry.
Sourcepub fn bound<'a>(
&'a self,
pins: &PinAuthority,
pin: PinHandle,
publisher: PinHandle,
) -> Result<BoundClosure<'a>, MixedError>
pub fn bound<'a>( &'a self, pins: &PinAuthority, pin: PinHandle, publisher: PinHandle, ) -> Result<BoundClosure<'a>, MixedError>
Bind the published descriptor so callers can select_entry without republishing.
pub fn request(&self) -> LocalGrantRequest
Sourcepub fn select<'p>(
&'p self,
bound: &BoundClosure<'_>,
ordinal: u32,
index: &AdmittedIndex<'_>,
rows: &mut [EntryRecord<'p>],
framing: &mut [u8],
) -> Result<SelectedPlainEntry<'p>, MixedError>
pub fn select<'p>( &'p self, bound: &BoundClosure<'_>, ordinal: u32, index: &AdmittedIndex<'_>, rows: &mut [EntryRecord<'p>], framing: &mut [u8], ) -> Result<SelectedPlainEntry<'p>, MixedError>
select_entry by publish ordinal. ordinal is 0-based assignment order.
Auto Trait Implementations§
impl Freeze for MixedHmc
impl RefUnwindSafe for MixedHmc
impl Send for MixedHmc
impl Sync for MixedHmc
impl Unpin for MixedHmc
impl UnsafeUnpin for MixedHmc
impl UnwindSafe for MixedHmc
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