pub trait Reply {
// Required methods
unsafe fn from_raw(raw: *const u8) -> Self;
unsafe fn into_raw(self) -> *const u8;
unsafe fn as_raw(&self) -> *const u8;
}Expand description
Trait for request replies
Required Methods§
Sourceunsafe fn from_raw(raw: *const u8) -> Self
unsafe fn from_raw(raw: *const u8) -> Self
Build the reply struct from a raw pointer.
§Safety
raw must be a pointer to a valid wire representation of Self, allocated with libc::malloc.
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.