pub struct Bookie(/* private fields */);Implementations§
Source§impl Bookie
impl Bookie
pub fn new(map: HashMap<ActorId, BookedVersions>) -> Self
pub fn new_with_registry( map: HashMap<ActorId, BookedVersions>, registry: LockRegistry, ) -> Self
pub async fn read<C: Display, E: Into<Option<C>>>( &self, label: &'static str, extra: E, ) -> CountedTokioRwLockReadGuard<'_, BookieInner>
pub async fn write<C: Display, E: Into<Option<C>>>( &self, label: &'static str, extra: E, ) -> CountedTokioRwLockWriteGuard<'_, BookieInner>
pub fn blocking_write<C: Display, E: Into<Option<C>>>( &self, label: &'static str, extra: E, ) -> CountedTokioRwLockWriteGuard<'_, BookieInner>
pub fn registry(&self) -> &LockRegistry
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Bookie
impl !UnwindSafe for Bookie
impl Freeze for Bookie
impl Send for Bookie
impl Sync for Bookie
impl Unpin for Bookie
impl UnsafeUnpin for Bookie
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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