pub struct InMemoryStepUpProofStore { /* private fields */ }Expand description
单进程一次性 proof 存储。
适用于单实例服务和测试;多实例部署必须改用 RedisStepUpProofStore,否则
不同进程无法共享已消费状态。
Trait Implementations§
Source§impl Debug for InMemoryStepUpProofStore
impl Debug for InMemoryStepUpProofStore
Source§impl Default for InMemoryStepUpProofStore
impl Default for InMemoryStepUpProofStore
Auto Trait Implementations§
impl !Freeze for InMemoryStepUpProofStore
impl Forget for InMemoryStepUpProofStore
impl Move for InMemoryStepUpProofStore
impl RefUnwindSafe for InMemoryStepUpProofStore
impl Send for InMemoryStepUpProofStore
impl Sync for InMemoryStepUpProofStore
impl Unpin for InMemoryStepUpProofStore
impl UnsafeUnpin for InMemoryStepUpProofStore
impl UnwindSafe for InMemoryStepUpProofStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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