pub trait ToSharedBuffer {
// Required method
fn to_shared_buffer(self) -> Result<SharedBuffer, BufferError>;
}Required Methods§
Creates a new SharedBuffer containing the byte representation of self.
§Errors
- Returns
BufferErrorif the allocation fails.