Skip to main content

bytes

Function bytes 

Source
pub fn bytes(data: &[u8]) -> Bytes
Expand description

data as Bytes backed by the process’s shared copy of these bytes.