pub enum RunnerOs {
Linux,
Windows,
MacOs,
Other(String),
}Expand description
The runner operating system, parsed from RUNNER_OS.
§Examples
use actions_rs::RunnerOs;
// Unrecognised values are preserved rather than lost.
assert_eq!(RunnerOs::Other("Plan9".into()), RunnerOs::Other("Plan9".into()));Variants§
Linux
RUNNER_OS == "Linux".
Windows
RUNNER_OS == "Windows".
MacOs
RUNNER_OS == "macOS".
Other(String)
An unrecognised value (forward-compatible).
Implementations§
Trait Implementations§
impl Eq for RunnerOs
impl StructuralPartialEq for RunnerOs
Auto Trait Implementations§
impl Freeze for RunnerOs
impl RefUnwindSafe for RunnerOs
impl Send for RunnerOs
impl Sync for RunnerOs
impl Unpin for RunnerOs
impl UnsafeUnpin for RunnerOs
impl UnwindSafe for RunnerOs
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