pub struct Platform {
pub name: String,
pub os: Os,
pub arch: Arch,
pub docker_available: bool,
}Expand description
Target platform with capabilities
Fields§
§name: StringHuman-readable name
os: OsOperating system
arch: ArchCPU architecture
docker_available: boolWhether Docker is available
Implementations§
Source§impl Platform
impl Platform
Sourcepub fn supports_testcontainers(&self) -> bool
pub fn supports_testcontainers(&self) -> bool
Check if this platform supports testcontainers
Sourcepub fn target_triple(&self) -> &'static str
pub fn target_triple(&self) -> &'static str
Get the target triple for this platform
Sourcepub fn uses_native_execution(&self) -> bool
pub fn uses_native_execution(&self) -> bool
Check if platform uses native execution (vs container)
Sourcepub fn uses_container_execution(&self) -> bool
pub fn uses_container_execution(&self) -> bool
Check if platform uses container execution
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Platform
impl<'de> Deserialize<'de> for Platform
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 Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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