pub struct SerialTaskOutput { /* private fields */ }Expand description
Cloneable task-context output capability for one runtime UART.
Implementations§
Source§impl SerialTaskOutput
impl SerialTaskOutput
pub fn try_write(&self, bytes: &[u8]) -> RuntimeResult<usize>
pub fn write_all(&self, bytes: &[u8]) -> RuntimeResult<usize>
pub fn write_text_all(&self, bytes: &[u8]) -> RuntimeResult<usize>
pub fn write_fmt(&self, args: Arguments<'_>) -> Result
pub fn wait_idle(&self) -> RuntimeResult
pub fn discard_pending(&self) -> RuntimeResult
pub fn reconfigure( &self, config: Option<Config>, drain: bool, publish: impl FnOnce(), ) -> RuntimeResult
pub fn poll_source(&self) -> Arc<PollSet> ⓘ
Trait Implementations§
Source§impl Clone for SerialTaskOutput
impl Clone for SerialTaskOutput
Source§fn clone(&self) -> SerialTaskOutput
fn clone(&self) -> SerialTaskOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SerialTaskOutput
impl !UnwindSafe for SerialTaskOutput
impl Freeze for SerialTaskOutput
impl Send for SerialTaskOutput
impl Sync for SerialTaskOutput
impl Unpin for SerialTaskOutput
impl UnsafeUnpin for SerialTaskOutput
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