pub struct UserProfileCache { /* private fields */ }Implementations§
Source§impl UserProfileCache
impl UserProfileCache
pub fn new() -> Self
pub fn set(&self, profile: UserProfile)
pub fn get(&self, user_id: u64) -> Option<UserProfile>
Trait Implementations§
Source§impl Debug for UserProfileCache
impl Debug for UserProfileCache
Source§impl Default for UserProfileCache
impl Default for UserProfileCache
Source§fn default() -> UserProfileCache
fn default() -> UserProfileCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UserProfileCache
impl !RefUnwindSafe for UserProfileCache
impl Send for UserProfileCache
impl Sync for UserProfileCache
impl Unpin for UserProfileCache
impl UnsafeUnpin for UserProfileCache
impl UnwindSafe for UserProfileCache
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