pub struct InterruptMode { /* private fields */ }Expand description
The wire type corresponding to InterruptMode.
Implementations§
Source§impl InterruptMode
impl InterruptMode
pub const EDGE_LOW: InterruptMode
pub const EDGE_HIGH: InterruptMode
pub const EDGE_BOTH: InterruptMode
pub const LEVEL_LOW: InterruptMode
pub const LEVEL_HIGH: InterruptMode
Trait Implementations§
Source§impl Clone for InterruptMode
impl Clone for InterruptMode
Source§fn clone(&self) -> InterruptMode
fn clone(&self) -> InterruptMode
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 Constrained for InterruptMode
impl Constrained for InterruptMode
Source§impl Debug for InterruptMode
impl Debug for InterruptMode
Source§impl<___D> Decode<___D> for InterruptModewhere
___D: ?Sized,
impl<___D> Decode<___D> for InterruptModewhere
___D: ?Sized,
Source§impl<'a, ___E> Encode<InterruptMode, ___E> for &'a InterruptModewhere
___E: ?Sized,
impl<'a, ___E> Encode<InterruptMode, ___E> for &'a InterruptModewhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<InterruptMode>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<InterruptMode>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<InterruptMode, ___E> for InterruptModewhere
___E: ?Sized,
impl<___E> Encode<InterruptMode, ___E> for InterruptModewhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<InterruptMode>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<InterruptMode>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl From<InterruptMode> for InterruptMode
impl From<InterruptMode> for InterruptMode
Source§fn from(wire: InterruptMode) -> Self
fn from(wire: InterruptMode) -> Self
Converts to this type from the input type.
Source§impl From<InterruptMode> for InterruptMode
impl From<InterruptMode> for InterruptMode
Source§fn from(natural: InterruptMode) -> Self
fn from(natural: InterruptMode) -> Self
Converts to this type from the input type.
Source§impl FromWire<InterruptMode> for InterruptMode
impl FromWire<InterruptMode> for InterruptMode
Source§fn from_wire(wire: InterruptMode) -> Self
fn from_wire(wire: InterruptMode) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<InterruptMode> for InterruptMode
impl FromWireRef<InterruptMode> for InterruptMode
Source§fn from_wire_ref(wire: &InterruptMode) -> Self
fn from_wire_ref(wire: &InterruptMode) -> Self
Converts the given reference to this type.
Source§impl IntoNatural for InterruptMode
impl IntoNatural for InterruptMode
Source§type Natural = InterruptMode
type Natural = InterruptMode
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl PartialEq for InterruptMode
impl PartialEq for InterruptMode
Source§fn eq(&self, other: &InterruptMode) -> bool
fn eq(&self, other: &InterruptMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Wire for InterruptMode
impl Wire for InterruptMode
Source§type Narrowed<'de> = InterruptMode
type Narrowed<'de> = InterruptMode
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(_: &mut MaybeUninit<Self>)
fn zero_padding(_: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
impl Copy for InterruptMode
impl Eq for InterruptMode
impl StructuralPartialEq for InterruptMode
Auto Trait Implementations§
impl Freeze for InterruptMode
impl RefUnwindSafe for InterruptMode
impl Send for InterruptMode
impl Sync for InterruptMode
impl Unpin for InterruptMode
impl UnsafeUnpin for InterruptMode
impl UnwindSafe for InterruptMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]