#[non_exhaustive]pub enum PaneSetVisibleTextOutcome {
All(PaneSetBatch<PaneSnapshot>),
Any(PaneSetAny<PaneSnapshot>),
}Expand description
Result of awaiting a PaneSetVisibleTextWait.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All(PaneSetBatch<PaneSnapshot>)
Result for an all-panes wait.
Any(PaneSetAny<PaneSnapshot>)
Result for an any-pane wait.
Implementations§
Source§impl PaneSetVisibleTextOutcome
impl PaneSetVisibleTextOutcome
Sourcepub const fn all(&self) -> Option<&PaneSetBatch<PaneSnapshot>>
pub const fn all(&self) -> Option<&PaneSetBatch<PaneSnapshot>>
Returns the all-panes batch when this outcome came from
PaneSet::expect_all or PaneSet::wait_all.
Sourcepub const fn any(&self) -> Option<&PaneSetAny<PaneSnapshot>>
pub const fn any(&self) -> Option<&PaneSetAny<PaneSnapshot>>
Returns the any-pane result when this outcome came from
PaneSet::expect_any or PaneSet::wait_any.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PaneSetVisibleTextOutcome
impl !UnwindSafe for PaneSetVisibleTextOutcome
impl Freeze for PaneSetVisibleTextOutcome
impl Send for PaneSetVisibleTextOutcome
impl Sync for PaneSetVisibleTextOutcome
impl Unpin for PaneSetVisibleTextOutcome
impl UnsafeUnpin for PaneSetVisibleTextOutcome
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