pub struct SerialDyn<T>where
T: InterfaceRaw,{ /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T> DriverGeneric for SerialDyn<T>where
T: InterfaceRaw,
impl<T> DriverGeneric for SerialDyn<T>where
T: InterfaceRaw,
fn open(&mut self) -> Result<(), KError>
fn close(&mut self) -> Result<(), KError>
Source§fn raw_any(&self) -> Option<&(dyn Any + 'static)>
fn raw_any(&self) -> Option<&(dyn Any + 'static)>
Subtype casting support, returns subtype as
&dyn AnySource§fn raw_any_mut(&mut self) -> Option<&mut (dyn Any + 'static)>
fn raw_any_mut(&mut self) -> Option<&mut (dyn Any + 'static)>
Subtype casting support, returns subtype as
&mut dyn AnySource§impl<T> Interface for SerialDyn<T>where
T: InterfaceRaw,
impl<T> Interface for SerialDyn<T>where
T: InterfaceRaw,
fn take_tx(&mut self) -> Option<Box<dyn TSender>>
fn take_rx(&mut self) -> Option<Box<dyn TReciever>>
fn irq_handler(&mut self) -> Option<Box<dyn TIrqHandler>>
fn set_config(&mut self, config: &Config) -> Result<(), ConfigError>
fn baudrate(&self) -> u32
fn data_bits(&self) -> DataBits
fn stop_bits(&self) -> StopBits
fn parity(&self) -> Parity
fn clock_freq(&self) -> Option<NonZero<u32>>
fn enable_loopback(&mut self)
fn disable_loopback(&mut self)
fn is_loopback_enabled(&self) -> bool
fn enable_interrupts(&mut self, mask: InterruptMask)
fn disable_interrupts(&mut self, mask: InterruptMask)
fn get_enabled_interrupts(&self) -> InterruptMask
Auto Trait Implementations§
impl<T> Freeze for SerialDyn<T>where
T: Freeze,
impl<T> !RefUnwindSafe for SerialDyn<T>
impl<T> Send for SerialDyn<T>
impl<T> Sync for SerialDyn<T>where
T: Sync,
impl<T> Unpin for SerialDyn<T>where
T: Unpin,
impl<T> !UnwindSafe for SerialDyn<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