Struct terminal2::TerminalError
source · pub struct TerminalError {
pub directory: Option<PathBuf>,
pub shell: Shell,
pub source: Error,
}
Fields§
§directory: Option<PathBuf>
§shell: Shell
§source: Error
Implementations§
source§impl TerminalError
impl TerminalError
pub fn fmt_directory(&self) -> String
pub fn shell_to_string(&self) -> String
pub fn fmt_shell(&self) -> String
Trait Implementations§
source§impl Debug for TerminalError
impl Debug for TerminalError
source§impl Display for TerminalError
impl Display for TerminalError
source§impl Error for TerminalError
impl Error for TerminalError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 !RefUnwindSafe for TerminalError
impl Send for TerminalError
impl Sync for TerminalError
impl Unpin for TerminalError
impl !UnwindSafe for TerminalError
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