pub unsafe trait Wire: 'static + Sized {
type Decoded<'de>: 'de;
// Required method
fn zero_padding(out: &mut MaybeUninit<Self>);
}
Expand description
A FIDL wire type.
§Safety
- References to decoded data yielded by
Self::Decoded<'de>
must not outlive'de
. zero_padding
must write zeroes to (at least) the padding bytes ofout
.
Required Associated Types§
Required Methods§
Sourcefn zero_padding(out: &mut MaybeUninit<Self>)
fn zero_padding(out: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
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.