pub struct WorkspaceQueries<'a> { /* private fields */ }Implementations§
Source§impl<'a> WorkspaceQueries<'a>
impl<'a> WorkspaceQueries<'a>
pub fn snapshot(&self) -> Option<&'a WorkspaceSnapshot>
pub fn snapshot_arc(&self) -> Option<Arc<WorkspaceSnapshot>>
pub fn view(&self) -> Option<WorkspaceView<'a>>
pub fn last_failure(&self) -> Option<&'a WorkspaceFailure>
pub fn staleness(&self) -> WorkspaceStaleness
Trait Implementations§
Source§impl WorkspaceQueryPort for WorkspaceQueries<'_>
impl WorkspaceQueryPort for WorkspaceQueries<'_>
fn snapshot(&self) -> Option<&WorkspaceSnapshot>
fn snapshot_arc(&self) -> Option<Arc<WorkspaceSnapshot>>
fn view(&self) -> Option<WorkspaceView<'_>>
fn last_failure(&self) -> Option<&WorkspaceFailure>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WorkspaceQueries<'a>
impl<'a> !Send for WorkspaceQueries<'a>
impl<'a> !Sync for WorkspaceQueries<'a>
impl<'a> !UnwindSafe for WorkspaceQueries<'a>
impl<'a> Freeze for WorkspaceQueries<'a>
impl<'a> Unpin for WorkspaceQueries<'a>
impl<'a> UnsafeUnpin for WorkspaceQueries<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more