pub struct TaskConsoleOutput { /* private fields */ }Expand description
Cloneable output capability. All clones share one sleepable output lock.
Implementations§
Source§impl TaskConsoleOutput
impl TaskConsoleOutput
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 drain(&self) -> RuntimeResult
pub fn discard_pending(&self) -> RuntimeResult
Sourcepub fn reconfigure(
&self,
config: Option<Config>,
drain: bool,
publish: impl FnOnce(),
) -> RuntimeResult
pub fn reconfigure( &self, config: Option<Config>, drain: bool, publish: impl FnOnce(), ) -> RuntimeResult
Serializes an optional drain/configuration transaction with all writers.
pub fn poll_source(&self) -> Arc<PollSet> ⓘ
Trait Implementations§
Source§impl Clone for TaskConsoleOutput
impl Clone for TaskConsoleOutput
Source§fn clone(&self) -> TaskConsoleOutput
fn clone(&self) -> TaskConsoleOutput
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 TaskConsoleOutput
impl !UnwindSafe for TaskConsoleOutput
impl Freeze for TaskConsoleOutput
impl Send for TaskConsoleOutput
impl Sync for TaskConsoleOutput
impl Unpin for TaskConsoleOutput
impl UnsafeUnpin for TaskConsoleOutput
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