pub struct GenericModule<'a, IF: Interface + 'a, Cell: InteriorMut<'a, IF>, T: Deref<Target = Cell> + 'a> { /* private fields */ }
Expand description
This type represents a generic TMCM module.
Implementations§
Source§impl<'a, IF: Interface, Cell: InteriorMut<'a, IF>, T: Deref<Target = Cell>> GenericModule<'a, IF, Cell, T>
impl<'a, IF: Interface, Cell: InteriorMut<'a, IF>, T: Deref<Target = Cell>> GenericModule<'a, IF, Cell, T>
Sourcepub fn write_command<Inst: Instruction + DirectInstruction>(
&'a self,
instruction: Inst,
) -> Result<Inst::Return, Error<IF::Error>>
pub fn write_command<Inst: Instruction + DirectInstruction>( &'a self, instruction: Inst, ) -> Result<Inst::Return, Error<IF::Error>>
Synchronously write a command and wait for the Reply
Trait Implementations§
Auto Trait Implementations§
impl<'a, IF, Cell, T> Freeze for GenericModule<'a, IF, Cell, T>where
T: Freeze,
impl<'a, IF, Cell, T> RefUnwindSafe for GenericModule<'a, IF, Cell, T>where
T: RefUnwindSafe,
IF: RefUnwindSafe,
impl<'a, IF, Cell, T> Send for GenericModule<'a, IF, Cell, T>
impl<'a, IF, Cell, T> Sync for GenericModule<'a, IF, Cell, T>
impl<'a, IF, Cell, T> Unpin for GenericModule<'a, IF, Cell, T>where
T: Unpin,
impl<'a, IF, Cell, T> UnwindSafe for GenericModule<'a, IF, Cell, T>
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