pub struct BrokerDictionaryCache { /* private fields */ }Implementations§
Source§impl BrokerDictionaryCache
impl BrokerDictionaryCache
pub fn new() -> Self
pub fn snapshot(&self) -> Arc<BrokerDictionarySnapshot>
pub fn replace(&self, snapshot: BrokerDictionarySnapshot)
pub fn has_last_good(&self) -> bool
pub fn display_name_for_issuer( &self, issuer_id: i64, app_lang: i32, ) -> Option<String>
pub fn display_name_for_broker_code( &self, broker_code: i64, app_lang: i32, ) -> Option<String>
pub fn issuer_for_broker_code(&self, broker_code: i64) -> Option<i64>
pub fn contains_key(&self, issuer_id: &i64) -> bool
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Sourcepub fn insert(&self, issuer_id: i64, info: CachedBrokerInfo)
pub fn insert(&self, issuer_id: i64, info: CachedBrokerInfo)
Compatibility helper for tests and manually seeded embedded runtimes.
Production CMD18008 publication uses Self::replace.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BrokerDictionaryCache
impl RefUnwindSafe for BrokerDictionaryCache
impl Send for BrokerDictionaryCache
impl Sync for BrokerDictionaryCache
impl Unpin for BrokerDictionaryCache
impl UnsafeUnpin for BrokerDictionaryCache
impl UnwindSafe for BrokerDictionaryCache
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