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