pub struct Ch34xDevice<'d, A, M = NoopRawMutex>where
A: UsbHostAllocator<'d>,
M: RawMutex,{ /* private fields */ }Expand description
CH34x device — owns the shared control pipe on endpoint 0.
Implementations§
Source§impl<'d, A> Ch34xDevice<'d, A, NoopRawMutex>where
A: UsbHostAllocator<'d>,
impl<'d, A> Ch34xDevice<'d, A, NoopRawMutex>where
A: UsbHostAllocator<'d>,
Sourcepub fn new(alloc: &A, enum_info: &EnumerationInfo) -> Result<Self, Ch34xError>
pub fn new(alloc: &A, enum_info: &EnumerationInfo) -> Result<Self, Ch34xError>
Allocate the device-level control pipe using a NoopRawMutex.
Source§impl<'d, A, M> Ch34xDevice<'d, A, M>where
A: UsbHostAllocator<'d>,
M: RawMutex,
impl<'d, A, M> Ch34xDevice<'d, A, M>where
A: UsbHostAllocator<'d>,
M: RawMutex,
Sourcepub fn new_with_raw_mutex(
alloc: &A,
enum_info: &EnumerationInfo,
) -> Result<Self, Ch34xError>
pub fn new_with_raw_mutex( alloc: &A, enum_info: &EnumerationInfo, ) -> Result<Self, Ch34xError>
Allocate the device-level control pipe using a caller-provided raw mutex.
Auto Trait Implementations§
impl<'d, A, M = NoopRawMutex> !Freeze for Ch34xDevice<'d, A, M>
impl<'d, A, M = NoopRawMutex> !RefUnwindSafe for Ch34xDevice<'d, A, M>
impl<'d, A, M> Forget for Ch34xDevice<'d, A, M>
impl<'d, A, M> Move for Ch34xDevice<'d, A, M>
impl<'d, A, M> Send for Ch34xDevice<'d, A, M>
impl<'d, A, M> Sync for Ch34xDevice<'d, A, M>
impl<'d, A, M> Unpin for Ch34xDevice<'d, A, M>
impl<'d, A, M> UnsafeUnpin for Ch34xDevice<'d, A, M>
impl<'d, A, M> UnwindSafe for Ch34xDevice<'d, A, M>
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