Struct windows::Devices::Usb::UsbEndpointDescriptor
pub struct UsbEndpointDescriptor(/* private fields */);
Implementations§
§impl UsbEndpointDescriptor
impl UsbEndpointDescriptor
pub fn EndpointNumber(&self) -> Result<u8>
pub fn Direction(&self) -> Result<UsbTransferDirection>
pub fn EndpointType(&self) -> Result<UsbEndpointType>
pub fn AsBulkInEndpointDescriptor(&self) -> Result<UsbBulkInEndpointDescriptor>
pub fn AsInterruptInEndpointDescriptor( &self ) -> Result<UsbInterruptInEndpointDescriptor>
pub fn AsBulkOutEndpointDescriptor( &self ) -> Result<UsbBulkOutEndpointDescriptor>
pub fn AsInterruptOutEndpointDescriptor( &self ) -> Result<UsbInterruptOutEndpointDescriptor>
pub fn TryParse<P0>(
descriptor: P0,
parsed: &mut Option<UsbEndpointDescriptor>
) -> Result<bool>where
P0: IntoParam<UsbDescriptor>,
pub fn Parse<P0>(descriptor: P0) -> Result<UsbEndpointDescriptor>where
P0: IntoParam<UsbDescriptor>,
Trait Implementations§
§impl Clone for UsbEndpointDescriptor
impl Clone for UsbEndpointDescriptor
§fn clone(&self) -> UsbEndpointDescriptor
fn clone(&self) -> UsbEndpointDescriptor
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 more§impl Debug for UsbEndpointDescriptor
impl Debug for UsbEndpointDescriptor
§impl From<&UsbEndpointDescriptor> for &IInspectable
impl From<&UsbEndpointDescriptor> for &IInspectable
§fn from(value: &UsbEndpointDescriptor) -> Self
fn from(value: &UsbEndpointDescriptor) -> Self
Converts to this type from the input type.
§impl From<&UsbEndpointDescriptor> for &IUnknown
impl From<&UsbEndpointDescriptor> for &IUnknown
§fn from(value: &UsbEndpointDescriptor) -> Self
fn from(value: &UsbEndpointDescriptor) -> Self
Converts to this type from the input type.
§impl From<UsbEndpointDescriptor> for IInspectable
impl From<UsbEndpointDescriptor> for IInspectable
§fn from(value: UsbEndpointDescriptor) -> Self
fn from(value: UsbEndpointDescriptor) -> Self
Converts to this type from the input type.
§impl From<UsbEndpointDescriptor> for IUnknown
impl From<UsbEndpointDescriptor> for IUnknown
§fn from(value: UsbEndpointDescriptor) -> Self
fn from(value: UsbEndpointDescriptor) -> Self
Converts to this type from the input type.
§impl Interface for UsbEndpointDescriptor
impl Interface for UsbEndpointDescriptor
§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 more§impl PartialEq for UsbEndpointDescriptor
impl PartialEq for UsbEndpointDescriptor
§fn eq(&self, other: &UsbEndpointDescriptor) -> bool
fn eq(&self, other: &UsbEndpointDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UsbEndpointDescriptor
impl Send for UsbEndpointDescriptor
impl StructuralPartialEq for UsbEndpointDescriptor
impl Sync for UsbEndpointDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for UsbEndpointDescriptor
impl Unpin for UsbEndpointDescriptor
impl UnwindSafe for UsbEndpointDescriptor
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