Enum gpiocdev::AbiVersion
source · pub enum AbiVersion {
V1,
V2,
}
Expand description
The uAPI ABI versions available to interact with the kernel.
Two versions of the Linux GPIO uAPI ABI currently exist, with v1 being released in
Linux 4.8 and v2 being released in Linux 5.10.
Both versions of the uAPI ABI are supported by gpiocdev
, both individually and combined,
with the library defaulting to v2.
The v1 uAPI can be selected as a feature for applications where v2 may be unavailable.
V2
is the current ABI and is used by default.V1
is more restrictive than V2, so some information and features are unavailable.
Variants§
Trait Implementations§
source§impl Clone for AbiVersion
impl Clone for AbiVersion
source§fn clone(&self) -> AbiVersion
fn clone(&self) -> AbiVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AbiVersion
impl Debug for AbiVersion
source§impl Default for AbiVersion
impl Default for AbiVersion
source§fn default() -> AbiVersion
fn default() -> AbiVersion
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AbiVersion
impl<'de> Deserialize<'de> for AbiVersion
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
source§impl Display for AbiVersion
impl Display for AbiVersion
source§impl PartialEq for AbiVersion
impl PartialEq for AbiVersion
source§fn eq(&self, other: &AbiVersion) -> bool
fn eq(&self, other: &AbiVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AbiVersion
impl Serialize for AbiVersion
impl Copy for AbiVersion
impl Eq for AbiVersion
impl StructuralPartialEq for AbiVersion
Auto Trait Implementations§
impl Freeze for AbiVersion
impl RefUnwindSafe for AbiVersion
impl Send for AbiVersion
impl Sync for AbiVersion
impl Unpin for AbiVersion
impl UnwindSafe for AbiVersion
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