pub struct SharedKeyIdentity { /* private fields */ }Expand description
Identifies a resource and its codec configuration within one cache namespace.
Implementations§
Sourcepub fn new<Codec: 'static>(
address: impl Into<String>,
configuration: impl Into<String>,
) -> Self
pub fn new<Codec: 'static>( address: impl Into<String>, configuration: impl Into<String>, ) -> Self
Creates a stable address with explicit codec type and configuration.
Equal addresses must designate the same resource. Include backend/store identity in the address when one cache serves multiple stores. Codec configuration must distinguish incompatible instances of the same type.
Trait Implementations§
Auto Trait Implementations§
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