pub trait Encodable {
type Encoded: Wire;
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _;
}
Expand description
A type which can be encoded as FIDL.
Provided Associated Constants§
Sourceconst COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
Whether the conversion from Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
.
Copy optimization is disabled by default.
Required Associated Types§
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.