pub enum Arch {
X64,
Arm64,
Arm32,
}Expand description
The host architectures this product supports.
ARM64 is public preview on all three operating systems and ARM32 is Linux
only (01-current-architecture.md). Enforcing that pairing is d1’s job;
this enum only has to be able to name the values.
Variants§
Implementations§
Source§impl Arch
impl Arch
pub const ALL: [Arch; 3]
Sourcepub const fn label_token(self) -> &'static str
pub const fn label_token(self) -> &'static str
The token this architecture contributes to a derived routing label.
GitHub’s runner-package architecture tokens; x64 is fixed by the
rm-home-win-x64 example in 02-target-architecture.md.
Sourcepub const fn is_public_preview(self) -> bool
pub const fn is_public_preview(self) -> bool
ARM64 is public preview, which f2 must warn about rather than reject.
Trait Implementations§
impl Copy for Arch
Source§impl<'de> Deserialize<'de> for Arch
impl<'de> Deserialize<'de> for Arch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Arch
Source§impl Ord for Arch
impl Ord for Arch
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Arch
impl PartialOrd for Arch
impl StructuralPartialEq for Arch
Auto Trait Implementations§
impl Freeze for Arch
impl RefUnwindSafe for Arch
impl Send for Arch
impl Sync for Arch
impl Unpin for Arch
impl UnsafeUnpin for Arch
impl UnwindSafe for Arch
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