Trait sea_streamer_types::Buffer
source · pub trait Buffer {
// Required methods
fn size(&self) -> usize;
fn into_bytes(self) -> Vec<u8>;
fn as_bytes(&self) -> &[u8] ⓘ;
fn as_str(&self) -> Result<&str, Utf8Error>;
}
Expand description
Common interface of byte containers.