pub struct DisclaimerCache { /* private fields */ }Implementations§
Source§impl DisclaimerCache
impl DisclaimerCache
pub fn new() -> Self
pub fn agree_api(&self) -> Option<bool>
pub fn set_agree_api(&self, agreed: bool)
pub fn broker_agreement(&self, broker_id: u32) -> Option<bool>
pub fn set_broker_agreement(&self, broker_id: u32, agreed: bool)
pub fn unagreed_brokers( &self, brokers: impl IntoIterator<Item = u32>, ) -> Vec<u32>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DisclaimerCache
impl !RefUnwindSafe for DisclaimerCache
impl Send for DisclaimerCache
impl Sync for DisclaimerCache
impl Unpin for DisclaimerCache
impl UnsafeUnpin for DisclaimerCache
impl UnwindSafe for DisclaimerCache
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