Skip to main content

AsyncSkipBytes

Trait AsyncSkipBytes 

Source
pub trait AsyncSkipBytes {
    // Required method
    async fn skip_bytes(&mut self, n_bytes: usize) -> Result<()>;
}
Available on crate feature async only.
Expand description

Like AsyncSeek, but only allows seeking forward from the current position.

Required Methods§

Source

async fn skip_bytes(&mut self, n_bytes: usize) -> Result<()>

Skips ahead n_bytes bytes.

§Errors

This function returns an error if the I/O operations fail.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§