Skip to main content

AppDeciders

Struct AppDeciders 

Source
pub struct AppDeciders<P, A>
where P: FnMut(&ProofRequest<'_>) -> bool, A: FnMut(&ResourceOffer) -> bool,
{ pub should_prove: P, pub should_accept_resource: A, }
Expand description

The app’s synchronous judgment seams, consulted inline on the manifold: RNS 1.4.2 PROVE_APP and ACCEPT_APP.

Fields§

§should_prove: P§should_accept_resource: A

Auto Trait Implementations§

§

impl<P, A> Freeze for AppDeciders<P, A>
where P: Freeze, A: Freeze,

§

impl<P, A> RefUnwindSafe for AppDeciders<P, A>

§

impl<P, A> Send for AppDeciders<P, A>
where P: Send, A: Send,

§

impl<P, A> Sync for AppDeciders<P, A>
where P: Sync, A: Sync,

§

impl<P, A> Unpin for AppDeciders<P, A>
where P: Unpin, A: Unpin,

§

impl<P, A> UnsafeUnpin for AppDeciders<P, A>
where P: UnsafeUnpin, A: UnsafeUnpin,

§

impl<P, A> UnwindSafe for AppDeciders<P, A>
where P: UnwindSafe, A: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.