pub struct GpioPin(/* private fields */);
Implementations§
§impl GpioPin
impl GpioPin
pub fn Close(&self) -> Result<()>
pub fn ValueChanged<P0>(&self, handler: P0) -> Result<EventRegistrationToken>
pub fn RemoveValueChanged(&self, token: EventRegistrationToken) -> Result<()>
pub fn DebounceTimeout(&self) -> Result<TimeSpan>
pub fn SetDebounceTimeout(&self, value: TimeSpan) -> Result<()>
pub fn PinNumber(&self) -> Result<i32>
pub fn SharingMode(&self) -> Result<GpioSharingMode>
pub fn IsDriveModeSupported(&self, drivemode: GpioPinDriveMode) -> Result<bool>
pub fn GetDriveMode(&self) -> Result<GpioPinDriveMode>
pub fn SetDriveMode(&self, value: GpioPinDriveMode) -> Result<()>
pub fn Write(&self, value: GpioPinValue) -> Result<()>
pub fn Read(&self) -> Result<GpioPinValue>
Trait Implementations§
§impl From<&GpioPin> for &IInspectable
impl From<&GpioPin> for &IInspectable
§impl From<GpioPin> for IInspectable
impl From<GpioPin> for IInspectable
§impl Interface for GpioPin
impl Interface for GpioPin
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreimpl Eq for GpioPin
impl Send for GpioPin
impl StructuralPartialEq for GpioPin
impl Sync for GpioPin
Auto Trait Implementations§
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