pub struct MemorySchemaCache { /* private fields */ }Expand description
The default SchemaCache: in-process maps governed by a SchemaCachePolicy.
Implementations§
Source§impl MemorySchemaCache
impl MemorySchemaCache
Sourcepub fn new(policy: SchemaCachePolicy) -> Self
pub fn new(policy: SchemaCachePolicy) -> Self
A cache under policy.
Sourcepub fn policy(&self) -> SchemaCachePolicy
pub fn policy(&self) -> SchemaCachePolicy
The policy this cache runs under.
Trait Implementations§
Source§impl Debug for MemorySchemaCache
impl Debug for MemorySchemaCache
Source§impl SchemaCache for MemorySchemaCache
impl SchemaCache for MemorySchemaCache
Source§fn schema(&self, id: u32) -> Option<Arc<RegisteredSchema>>
fn schema(&self, id: u32) -> Option<Arc<RegisteredSchema>>
The schema remembered under
id, if any. Read moreSource§fn subject(&self, subject: &str) -> Option<Arc<RegisteredSchema>>
fn subject(&self, subject: &str) -> Option<Arc<RegisteredSchema>>
The schema remembered as
subject’s current version, if any and still current. Read moreAuto Trait Implementations§
impl !Freeze for MemorySchemaCache
impl RefUnwindSafe for MemorySchemaCache
impl Send for MemorySchemaCache
impl Sync for MemorySchemaCache
impl Unpin for MemorySchemaCache
impl UnsafeUnpin for MemorySchemaCache
impl UnwindSafe for MemorySchemaCache
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> ErasedDestructor for Twhere
T: 'static,
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