pub struct WorkspaceRegistry { /* private fields */ }Implementations§
Source§impl WorkspaceRegistry
impl WorkspaceRegistry
Sourcepub fn bind(
&mut self,
filesystem: Filesystem,
root: Option<PathBuf>,
) -> WorkspaceId
pub fn bind( &mut self, filesystem: Filesystem, root: Option<PathBuf>, ) -> WorkspaceId
The context for a filesystem, binding it on first use. Idempotent: an already-bound filesystem keeps its identity and incarnation.
Sourcepub fn note_disconnect(&mut self, filesystem: &Filesystem)
pub fn note_disconnect(&mut self, filesystem: &Filesystem)
A disconnect ends the incarnation: the next bind/reconnect observes a bumped counter rather than silently continuing the old session.
pub fn iter(&self) -> impl Iterator<Item = (WorkspaceId, &WorkspaceContext)>
Trait Implementations§
Source§impl Default for WorkspaceRegistry
impl Default for WorkspaceRegistry
Source§fn default() -> WorkspaceRegistry
fn default() -> WorkspaceRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkspaceRegistry
impl RefUnwindSafe for WorkspaceRegistry
impl Send for WorkspaceRegistry
impl Sync for WorkspaceRegistry
impl Unpin for WorkspaceRegistry
impl UnsafeUnpin for WorkspaceRegistry
impl UnwindSafe for WorkspaceRegistry
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