Trait atat::AtatIngress
source · pub trait AtatIngress {
// Required methods
fn write_buf(&mut self) -> &mut [u8];
fn try_advance(&mut self, commit: usize) -> Result<(), Error>;
async fn advance(&mut self, commit: usize);
fn clear(&mut self);
// Provided methods
fn try_write(&mut self, buf: &[u8]) -> Result<usize, Error> { ... }
async fn write(&mut self, buf: &[u8]) { ... }
async fn read_from(&mut self, serial: &mut impl Read) -> ! { ... }
}
Required Methods§
sourcefn write_buf(&mut self) -> &mut [u8]
fn write_buf(&mut self) -> &mut [u8]
Get the write buffer of the ingress
Bytes written to the buffer must be committed by calling advance.
sourcefn try_advance(&mut self, commit: usize) -> Result<(), Error>
fn try_advance(&mut self, commit: usize) -> Result<(), Error>
Commit a given number of written bytes to the ingress and make them visible to the digester.
sourceasync fn advance(&mut self, commit: usize)
async fn advance(&mut self, commit: usize)
Commit a given number of written bytes to the ingress and make them visible to the digester.
fn clear(&mut self)
Provided Methods§
Object Safety§
This trait is not object safe.