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 v4.8 and v2 being released in Linux v5.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, but the ABI itself is more widely available.
Variants
V1
GPIO uAPI v1
V2
GPIO uAPI v2
Trait Implementations
sourceimpl Clone for AbiVersion
impl Clone for AbiVersion
sourcefn clone(&self) -> AbiVersion
fn clone(&self) -> AbiVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AbiVersion
impl Debug for AbiVersion
sourceimpl Default for AbiVersion
impl Default for AbiVersion
sourceimpl Display for AbiVersion
impl Display for AbiVersion
sourceimpl PartialEq<AbiVersion> for AbiVersion
impl PartialEq<AbiVersion> for AbiVersion
sourcefn eq(&self, other: &AbiVersion) -> bool
fn eq(&self, other: &AbiVersion) -> bool
impl Copy for AbiVersion
impl Eq for AbiVersion
impl StructuralEq for AbiVersion
impl StructuralPartialEq for AbiVersion
Auto Trait Implementations
impl RefUnwindSafe for AbiVersion
impl Send for AbiVersion
impl Sync for AbiVersion
impl Unpin for AbiVersion
impl UnwindSafe for AbiVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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