#[repr(u32)]pub enum BufferMode {
Input = 0,
OutputLow = 1,
OutputHigh = 2,
}Expand description
Whether to drive the GPIO to a high or low voltage, or disable the output buffer.
Variants§
Implementations§
Source§impl BufferMode
impl BufferMode
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
Trait Implementations§
Source§impl Clone for BufferMode
impl Clone for BufferMode
Source§fn clone(&self) -> BufferMode
fn clone(&self) -> BufferMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BufferMode
impl Debug for BufferMode
Source§impl<D: ResourceDialect> Decode<BufferMode, D> for BufferMode
impl<D: ResourceDialect> Decode<BufferMode, D> for BufferMode
Source§impl<D: ResourceDialect> Encode<BufferMode, D> for BufferMode
impl<D: ResourceDialect> Encode<BufferMode, D> for BufferMode
Source§impl Hash for BufferMode
impl Hash for BufferMode
Source§impl Ord for BufferMode
impl Ord for BufferMode
Source§fn cmp(&self, other: &BufferMode) -> Ordering
fn cmp(&self, other: &BufferMode) -> Ordering
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
Source§impl PartialEq for BufferMode
impl PartialEq for BufferMode
Source§fn eq(&self, other: &BufferMode) -> bool
fn eq(&self, other: &BufferMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BufferMode
impl PartialOrd for BufferMode
Source§impl TypeMarker for BufferMode
impl TypeMarker for BufferMode
Source§type Owned = BufferMode
type Owned = BufferMode
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for BufferMode
impl ValueTypeMarker for BufferMode
Source§type Borrowed<'a> = BufferMode
type Borrowed<'a> = BufferMode
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreimpl Copy for BufferMode
impl Eq for BufferMode
impl StructuralPartialEq for BufferMode
Auto Trait Implementations§
impl Freeze for BufferMode
impl RefUnwindSafe for BufferMode
impl Send for BufferMode
impl Sync for BufferMode
impl Unpin for BufferMode
impl UnsafeUnpin for BufferMode
impl UnwindSafe for BufferMode
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