pub struct Controller<D, S = Empty> { /* private fields */ }Implementations§
Source§impl<D> Controller<D, Empty>
impl<D> Controller<D, Empty>
pub fn new<Dev: Device>( device: Dev, initial_config: InitialConfig, runtime_config: RuntimeConfig, ) -> Controller<Dev, Uninit>
pub fn new_async<Dev: AsyncDevice>( device: Dev, initial_config: InitialConfig, runtime_config: RuntimeConfig, ) -> Controller<Dev, Uninit>
Available on crate feature
async only.Source§impl<D: AsyncDevice> Controller<D, Uninit>
impl<D: AsyncDevice> Controller<D, Uninit>
Source§impl<D: AsyncDevice> Controller<D, Init>
impl<D: AsyncDevice> Controller<D, Init>
pub async fn clear(&mut self) -> Result<(), Error>
Available on crate feature
async only.pub async fn reset(&mut self) -> Result<(), Error>
Available on crate feature
async only.pub async fn return_home(&mut self) -> Result<(), Error>
Available on crate feature
async only.pub fn initial_config(&self) -> InitialConfig
Available on crate feature
async only.pub fn runtime_config(&self) -> RuntimeConfig
Available on crate feature
async only.pub async fn set_runtime_config( &mut self, cfg: RuntimeConfig, ) -> Result<(), Error>
Available on crate feature
async only.pub fn backlight(&self) -> bool
Available on crate feature
async only.pub async fn set_backlight(&mut self, state: bool) -> Result<(), Error>
Available on crate feature
async only.pub fn cursor_blinking(&self) -> bool
Available on crate feature
async only.pub async fn set_cursor_blinking(&mut self, state: bool) -> Result<(), Error>
Available on crate feature
async only.pub fn cursor_visible(&self) -> bool
Available on crate feature
async only.pub async fn set_cursor_visible(&mut self, state: bool) -> Result<(), Error>
Available on crate feature
async only.pub async fn set_cursor_position( &mut self, row: u8, col: u8, ) -> Result<(), Error>
Available on crate feature
async only.pub async fn write_raw_char(&mut self, code: u8) -> Result<(), Error>
Available on crate feature
async only.pub async fn write_char_with_charset<C: Charset, const FALLBACK_CODE: u8>( &mut self, c: char, charset: &FallbackCharset<C, FALLBACK_CODE>, ) -> Result<(), Error>
Available on crate feature
async only.pub async fn write_char(&mut self, c: char) -> Result<(), Error>
Available on crate feature
async only.pub async fn write_raw_str(&mut self, raw_code: &[u8]) -> Result<(), Error>
Available on crate feature
async only.pub async fn write_str_with_charset<C: Charset, const FALLBACK_CODE: u8>( &mut self, s: &str, charset: &FallbackCharset<C, FALLBACK_CODE>, ) -> Result<(), Error>
Available on crate feature
async only.pub async fn write_str(&mut self, s: &str) -> Result<(), Error>
Available on crate feature
async only.pub async fn write_fmt_with_charset<C: Charset, const FALLBACK_CODE: u8, const BUFFER_SIZE: usize>( &mut self, args: Arguments<'_>, charset: &FallbackCharset<C, FALLBACK_CODE>, ) -> Result<(), Error>
Available on crate features
async and fmt only.pub async fn write_fmt<const BUFFER_SIZE: usize>( &mut self, args: Arguments<'_>, ) -> Result<(), Error>
Available on crate features
async and fmt only.pub fn device(&mut self) -> &mut D
Available on crate feature
async only.pub fn release(self) -> D
Available on crate feature
async only.Auto Trait Implementations§
impl<D, S> Freeze for Controller<D, S>where
D: Freeze,
impl<D, S> RefUnwindSafe for Controller<D, S>where
D: RefUnwindSafe,
S: RefUnwindSafe,
impl<D, S> Send for Controller<D, S>
impl<D, S> Sync for Controller<D, S>
impl<D, S> Unpin for Controller<D, S>
impl<D, S> UnwindSafe for Controller<D, S>where
D: UnwindSafe,
S: UnwindSafe,
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