pub enum ExternalProgramError {
Command(String),
ForegroundOwnershipUnconfirmed {
message: String,
diagnostic: ForegroundRestorationDiagnostic,
},
}Expand description
Failure while an interactive external program temporarily owns the terminal.
Variants§
Command(String)
Ordinary command failure after terminal ownership was restored.
ForegroundOwnershipUnconfirmed
Fatal failure because Tau could not confirm foreground ownership.
Fields
§
diagnostic: ForegroundRestorationDiagnosticBounded private diagnostic for the failed restoration syscall.
Implementations§
Source§impl ExternalProgramError
impl ExternalProgramError
Sourcepub fn is_foreground_ownership_unconfirmed(&self) -> bool
pub fn is_foreground_ownership_unconfirmed(&self) -> bool
Returns whether the interactive attachment must exit without resuming.
Sourcepub fn foreground_restoration_diagnostic(
&self,
) -> Option<ForegroundRestorationDiagnostic>
pub fn foreground_restoration_diagnostic( &self, ) -> Option<ForegroundRestorationDiagnostic>
Returns the bounded restoration diagnostic for an ownership fail-stop.
Trait Implementations§
Source§impl Debug for ExternalProgramError
impl Debug for ExternalProgramError
Source§impl Display for ExternalProgramError
impl Display for ExternalProgramError
Source§impl Error for ExternalProgramError
impl Error for ExternalProgramError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ExternalProgramError
impl RefUnwindSafe for ExternalProgramError
impl Send for ExternalProgramError
impl Sync for ExternalProgramError
impl Unpin for ExternalProgramError
impl UnsafeUnpin for ExternalProgramError
impl UnwindSafe for ExternalProgramError
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