#[non_exhaustive]pub enum PaneWait {
Arrived,
Dead,
TimedOut,
}Expand description
What came of waiting for a pane to do something.
Running out of time is an outcome rather than an error, because a caller retries “it has not happened yet” and “tmux could not be reached” differently, and an error kind would make them look alike.
§Examples
use libtmux::PaneWait;
fn keep_waiting(outcome: PaneWait) -> bool {
matches!(outcome, PaneWait::TimedOut)
}
assert!(keep_waiting(PaneWait::TimedOut));
assert!(!keep_waiting(PaneWait::Dead));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.
Arrived
What was waited for happened.
Dead
The pane’s process ended before it happened. Waiting longer cannot change the answer, which is why this is not a timeout.
TimedOut
The time ran out with the pane still alive.
Trait Implementations§
impl Copy for PaneWait
impl Eq for PaneWait
impl StructuralPartialEq for PaneWait
Auto Trait Implementations§
impl Freeze for PaneWait
impl RefUnwindSafe for PaneWait
impl Send for PaneWait
impl Sync for PaneWait
impl Unpin for PaneWait
impl UnsafeUnpin for PaneWait
impl UnwindSafe for PaneWait
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