pub struct ConsumerAdmitter<C> { /* private fields */ }Expand description
Wraps a LysDeliberateConsumer as a LysAdmitter.
Implementations§
Trait Implementations§
Source§impl<C: Debug> Debug for ConsumerAdmitter<C>
impl<C: Debug> Debug for ConsumerAdmitter<C>
Source§impl<C> LysAdmitter for ConsumerAdmitter<C>
impl<C> LysAdmitter for ConsumerAdmitter<C>
Source§fn admit(
&self,
pass: &[u8],
now: u64,
) -> Result<Box<dyn LysSession>, LysAdmissionRefusal>
fn admit( &self, pass: &[u8], now: u64, ) -> Result<Box<dyn LysSession>, LysAdmissionRefusal>
Verifies the pass offline for audience liminal at
now and returns
the session that decides its messages. Read moreAuto Trait Implementations§
impl<C> Freeze for ConsumerAdmitter<C>
impl<C> RefUnwindSafe for ConsumerAdmitter<C>where
Arc<C>: RefUnwindSafe,
impl<C> Send for ConsumerAdmitter<C>
impl<C> Sync for ConsumerAdmitter<C>
impl<C> Unpin for ConsumerAdmitter<C>
impl<C> UnsafeUnpin for ConsumerAdmitter<C>where
Arc<C>: UnsafeUnpin,
impl<C> UnwindSafe for ConsumerAdmitter<C>where
Arc<C>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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