pub struct Environment {
pub ret_code: Option<u8>,
pub jobs_count: usize,
pub elapsed_time: Option<u64>,
pub work_dir: PathBuf,
pub git_tree: Option<PathBuf>,
pub user: String,
pub host: String,
pub chassis: Chassis,
pub current_home: Option<(PathBuf, String)>,
}Expand description
Environment variables available to statusline
Fields§
§ret_code: Option<u8>Last command’s return code
jobs_count: usizeJobs currently running
elapsed_time: Option<u64>Last command’s elapsed time, in us
work_dir: PathBufWorking directory
git_tree: Option<PathBuf>Git worktree path if any
user: StringUsername
host: StringHostname
chassis: ChassisChassis
current_home: Option<(PathBuf, String)>Cheernt home: dir and username
Trait Implementations§
Source§impl From<&Environment> for DateTime<Local>
impl From<&Environment> for DateTime<Local>
Source§fn from(_: &Environment) -> Self
fn from(_: &Environment) -> Self
Converts to this type from the input type.
Source§impl From<&Environment> for Option<GitTree>
impl From<&Environment> for Option<GitTree>
Source§fn from(env: &Environment) -> Option<GitTree>
fn from(env: &Environment) -> Option<GitTree>
Converts to this type from the input type.
Source§impl From<&Environment> for Option<Venv>
impl From<&Environment> for Option<Venv>
Source§fn from(_: &Environment) -> Self
fn from(_: &Environment) -> Self
Converts to this type from the input type.
Source§impl From<&Environment> for Result<GitRepo>
impl From<&Environment> for Result<GitRepo>
Source§fn from(env: &Environment) -> Result<GitRepo>
fn from(env: &Environment) -> Result<GitRepo>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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