pub struct HandleStore<P: HandleProtocol> { /* private fields */ }Expand description
Generic handle store over a HandleProtocol.
Cloneable; clones share the handle table. Implements the detached async
store traits — use crate::SyncBridge for the sync traits.
Implementations§
Source§impl<P: HandleProtocol> HandleStore<P>
impl<P: HandleProtocol> HandleStore<P>
Sourcepub fn handle_path(id: u64) -> Path
pub fn handle_path(id: u64) -> Path
The handle path for an id: outstanding/{id}.
Sourcepub fn live_handles(&self) -> usize
pub fn live_handles(&self) -> usize
Number of live handles.
Sourcepub fn handle_ids(&self) -> Vec<u64>
pub fn handle_ids(&self) -> Vec<u64>
The ids of all live handles, ascending.
For meta/introspection lenses layered over a handle store.
Trait Implementations§
Source§impl<P: HandleProtocol> Clone for HandleStore<P>
impl<P: HandleProtocol> Clone for HandleStore<P>
Source§impl<P: HandleProtocol> DetachedReader for HandleStore<P>
impl<P: HandleProtocol> DetachedReader for HandleStore<P>
Source§fn read_detached(&mut self, from: &Path) -> DetachedFuture<Option<Record>>
fn read_detached(&mut self, from: &Path) -> DetachedFuture<Option<Record>>
Begin a read; the returned future resolves independently.
Source§impl<P: HandleProtocol> DetachedWriter for HandleStore<P>
impl<P: HandleProtocol> DetachedWriter for HandleStore<P>
Source§fn write_detached(&mut self, to: &Path, data: Record) -> DetachedFuture<Path>
fn write_detached(&mut self, to: &Path, data: Record) -> DetachedFuture<Path>
Begin a write; the returned future resolves independently.
Auto Trait Implementations§
impl<P> Freeze for HandleStore<P>
impl<P> RefUnwindSafe for HandleStore<P>where
Arc<Inner<P>>: RefUnwindSafe,
impl<P> Send for HandleStore<P>
impl<P> Sync for HandleStore<P>
impl<P> Unpin for HandleStore<P>
impl<P> UnsafeUnpin for HandleStore<P>where
Arc<Inner<P>>: UnsafeUnpin,
impl<P> UnwindSafe for HandleStore<P>where
Arc<Inner<P>>: UnwindSafe,
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