pub struct Stdout(/* private fields */);
Expand description
A handle to the serial output stream of this program.
An instance of this can be obtained using the stdout
function.
Implementations§
Source§impl Stdout
impl Stdout
Sourcepub const INTERNAL_BUFFER_SIZE: usize = 2_048usize
pub const INTERNAL_BUFFER_SIZE: usize = 2_048usize
The size of the internal VEXOs FIFO serial out buffer.
Sourcepub async fn lock(&self) -> StdoutLock<'static>
pub async fn lock(&self) -> StdoutLock<'static>
Locks the stdout for writing. This function will wait until the lock is acquired.
Sourcepub fn try_lock(&self) -> Option<StdoutLock<'static>>
pub fn try_lock(&self) -> Option<StdoutLock<'static>>
Attempts to lock the stdout for writing.
This function will return None
if the lock could not be acquired.
Auto Trait Implementations§
impl Freeze for Stdout
impl RefUnwindSafe for Stdout
impl Send for Stdout
impl Sync for Stdout
impl Unpin for Stdout
impl UnwindSafe for Stdout
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