pub struct AppJumpSigCache { /* private fields */ }Implementations§
Source§impl AppJumpSigCache
impl AppJumpSigCache
pub fn new() -> Self
Sourcepub fn ensure_epoch(&self, epoch: u64) -> bool
pub fn ensure_epoch(&self, epoch: u64) -> bool
Adopt a Platform publication epoch and clear tickets owned by an older connection. Returns true when replacement occurred.
pub fn publish_batch( &self, epoch: u64, invalid_time_secs: u32, tickets: Vec<Vec<u8>>, ) -> Result<usize, AppJumpSigPublishError>
pub fn consume(&self, now_ms: u64, epoch: u64) -> Option<String>
pub fn valid_len(&self, now_ms: u64, epoch: u64) -> usize
pub fn request_refill(&self)
pub async fn wait_for_refill_request(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AppJumpSigCache
impl !RefUnwindSafe for AppJumpSigCache
impl Send for AppJumpSigCache
impl Sync for AppJumpSigCache
impl Unpin for AppJumpSigCache
impl UnsafeUnpin for AppJumpSigCache
impl UnwindSafe for AppJumpSigCache
Blanket Implementations§
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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