pub struct PlainProvider<'src, 'sel, 'nodes> { /* private fields */ }Implementations§
Source§impl<'src, 'sel, 'nodes> PlainProvider<'src, 'sel, 'nodes>
impl<'src, 'sel, 'nodes> PlainProvider<'src, 'sel, 'nodes>
pub fn bind( class: PublicationClass, source: &'src [u8], catalog: OutboardCatalog<'sel, 'nodes>, policy_generation: u64, ) -> Result<Self, Error>
pub fn selected(&self) -> SelectedPlainEntry<'sel>
pub fn answer_describe<S: ServiceIo>( &self, session: &mut S, authority: &mut LocalEffectControl<'_, '_>, ) -> Result<ServedDescriptor, Error>
pub fn answer_describe_pages<S: ServiceIo>( &self, session: &mut S, authority: &mut LocalEffectControl<'_, '_>, body: &[u8], entry_page: &[u8], ) -> Result<ServedDescriptor, Error>
pub fn answer_open<S: ServiceIo>( &self, session: &mut S, authority: &mut LocalEffectControl<'_, '_>, ) -> Result<OpenedTransfer, Error>
pub fn answer_leaf<S: ServiceIo>( &self, session: &mut S, authority: &mut LocalEffectControl<'_, '_>, opened: &OpenedTransfer, ) -> Result<ServedLeaf, Error>
Sourcepub fn answer_leaf_after_credit<S: ServiceIo>(
&self,
session: &mut S,
authority: &mut LocalEffectControl<'_, '_>,
opened: &OpenedTransfer,
issue: impl FnOnce() -> Result<(), Error>,
) -> Result<ServedLeaf, Error>
pub fn answer_leaf_after_credit<S: ServiceIo>( &self, session: &mut S, authority: &mut LocalEffectControl<'_, '_>, opened: &OpenedTransfer, issue: impl FnOnce() -> Result<(), Error>, ) -> Result<ServedLeaf, Error>
Recheck, then spend one-shot runtime credit, then disclose. issue must
hold RuntimeAccess only for issue_credit — never across WouldBlock.
Auto Trait Implementations§
impl<'src, 'sel, 'nodes> Freeze for PlainProvider<'src, 'sel, 'nodes>
impl<'src, 'sel, 'nodes> RefUnwindSafe for PlainProvider<'src, 'sel, 'nodes>
impl<'src, 'sel, 'nodes> Send for PlainProvider<'src, 'sel, 'nodes>
impl<'src, 'sel, 'nodes> Sync for PlainProvider<'src, 'sel, 'nodes>
impl<'src, 'sel, 'nodes> Unpin for PlainProvider<'src, 'sel, 'nodes>
impl<'src, 'sel, 'nodes> UnsafeUnpin for PlainProvider<'src, 'sel, 'nodes>
impl<'src, 'sel, 'nodes> UnwindSafe for PlainProvider<'src, 'sel, 'nodes>
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