Trait Skip

Source
pub trait Skip: Duplex {
    // Required method
    fn skip(
        &mut self,
        len: VarInt,
        final_offset: Option<VarInt>,
    ) -> Result<(), Error>;
}
Expand description

A buffer which can be advanced forward without reading or writing payloads. This is essentially a forward-only std::io::Seek.

This can be used for scenarios where the buffer was written somewhere else but still needed to be tracked.

Required Methods§

Source

fn skip( &mut self, len: VarInt, final_offset: Option<VarInt>, ) -> Result<(), Error>

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§