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
.
Object Safety§
This trait is not object safe.