pub struct Stdout;
Expand description
A handle to the serial output stream of this program.
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 fn lock(&self) -> StdoutLock<'static>
pub fn lock(&self) -> StdoutLock<'static>
Locks the stdout for writing. This function is blocking and will wait until the lock is acquired.
Trait Implementations§
Source§impl Write for Stdout
impl Write for Stdout
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
Source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
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