pub struct Status<'a> {
pub root: &'a Path,
pub snapshot: &'a Path,
pub running: bool,
pub ram_only: bool,
pub state: Option<String>,
pub files: Option<usize>,
pub trigrams: Option<usize>,
pub memory_bytes: Option<u64>,
}Expand description
Everything the status block can show. In-RAM fields are None when no daemon is running.
Fields§
§root: &'a Path§snapshot: &'a Path§running: bool§ram_only: boolThe resident index is intentionally not persisted (cheap to rebuild); only set by the daemon.
state: Option<String>“ready” or “building N / M files”; only when the daemon is running.
files: Option<usize>§trigrams: Option<usize>§memory_bytes: Option<u64>Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Status<'a>
impl<'a> RefUnwindSafe for Status<'a>
impl<'a> Send for Status<'a>
impl<'a> Sync for Status<'a>
impl<'a> Unpin for Status<'a>
impl<'a> UnsafeUnpin for Status<'a>
impl<'a> UnwindSafe for Status<'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