pub trait ToBytes {
// Required method
fn to_bytes(&self) -> Bytes;
}Expand description
Required Methods§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T, E> ToBytes for Result<T, E>
Converts a Result into a Bytes
impl<T, E> ToBytes for Result<T, E>
Converts a Result into a Bytes
In Ngyn, a Result can be converted into a Bytes object.