pub struct Output<'d, IO: IoDevice> { /* private fields */ }Expand description
An Output handle is provided to Command callbacks to enable them to write outputs.
Implementations§
Source§impl<IO: IoDevice> Output<'_, IO>
impl<IO: IoDevice> Output<'_, IO>
Sourcepub async fn write(&mut self, s: &str) -> Result<(), IoDeviceError>
pub async fn write(&mut self, s: &str) -> Result<(), IoDeviceError>
Writes directly to the menu’s IoDevice.
Sourcepub async fn flush_buffer(&mut self) -> Result<(), IoDeviceError>
pub async fn flush_buffer(&mut self) -> Result<(), IoDeviceError>
Flushes the internal buffer to the menu’s IoDevice.
You should probably not be calling this directly.
Trait Implementations§
Auto Trait Implementations§
impl<'d, IO> Freeze for Output<'d, IO>
impl<'d, IO> RefUnwindSafe for Output<'d, IO>where
IO: RefUnwindSafe,
impl<'d, IO> Send for Output<'d, IO>where
IO: Send,
impl<'d, IO> Sync for Output<'d, IO>where
IO: Sync,
impl<'d, IO> Unpin for Output<'d, IO>
impl<'d, IO> !UnwindSafe for Output<'d, IO>
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