Struct Bytes
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
#[repr(C)]pub struct Bytes {
pub data: *const u8,
pub len: usize,
}
Borrowed bytes. A null pointer is permitted only for an empty span.
Fields
data: *const u8
Readable byte address.
len: usize
Length in bytes, not characters.
Implementations
impl Bytes
impl Bytes
text
pub fn text(value: &str) -> Self
Borrow UTF-8 for the duration of a host call.
Trait Implementations
impl Clone for Bytes
impl Clone for Bytes
clone
fn clone(&self) -> Bytes
clone_from
fn clone_from(&mut self, source: &Self)
impl Default for Bytes
impl Default for Bytes
default
fn default() -> Bytes
impl Copy for Bytes
impl Copy for Bytes