pub struct ContextState {
pub selected: usize,
pub detail: bool,
pub generation: u64,
pub load: ContextLoad,
/* private fields */
}Fields§
§selected: usize§detail: bool§generation: u64§load: ContextLoadImplementations§
Source§impl ContextState
impl ContextState
Sourcepub fn begin_refresh(&mut self, generation: u64)
pub fn begin_refresh(&mut self, generation: u64)
Begin a scan with an identity allocated by the long-lived host app. The host, rather than this disposable overlay, owns monotonicity across close/reopen cycles.
Sourcepub fn apply_scan(
&mut self,
generation: u64,
result: Result<ContextScan, String>,
) -> bool
pub fn apply_scan( &mut self, generation: u64, result: Result<ContextScan, String>, ) -> bool
Ignore a result from an earlier r scan. The host also drops results
after the overlay closes by having no state to apply them to.
pub fn selected_session(&self) -> Option<&ContextSession>
Trait Implementations§
Source§impl Debug for ContextState
impl Debug for ContextState
Auto Trait Implementations§
impl Freeze for ContextState
impl RefUnwindSafe for ContextState
impl Send for ContextState
impl Sync for ContextState
impl Unpin for ContextState
impl UnsafeUnpin for ContextState
impl UnwindSafe for ContextState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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