#[repr(u8)]
pub enum OsType {
Unknown,
Windows,
Linux,
Android,
MacOs,
Ios,
ChromeOs,
}
Variants
Unknown
Windows
Linux
Android
MacOs
Ios
ChromeOs
Trait Implementations
sourceimpl TryFrom<u8> for OsType
impl TryFrom<u8> for OsType
type Error = TryFromPrimitiveError<OsType>
type Error = TryFromPrimitiveError<OsType>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for OsType
impl TryFromPrimitive for OsType
type Primitive = u8
const NAME: &'static str = "OsType"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for OsType
impl Eq for OsType
impl StructuralEq for OsType
impl StructuralPartialEq for OsType
Auto Trait Implementations
impl RefUnwindSafe for OsType
impl Send for OsType
impl Sync for OsType
impl Unpin for OsType
impl UnwindSafe for OsType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more