pub trait MessageBodyExt {
// Required method
fn split_from_bytes(data: &[u8]) -> (&[u8], &[u8]);
}
Required Methods§
Sourcefn split_from_bytes(data: &[u8]) -> (&[u8], &[u8])
fn split_from_bytes(data: &[u8]) -> (&[u8], &[u8])
Returns header on the left, rest on the right
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.