pub trait UWire {
const WIRE_ID: WireIdentity;
const PAYLOAD_FAMILY_ID: WireIdentity;
const METADATA_LAYOUT_ID: WireIdentity;
const FORMAT_VERSION: u16;
// Provided methods
fn wire_compatibility(actual: &WireIdentityRef) -> WireCompatibility { ... }
fn payload_family_compatibility(
actual: &WireIdentityRef,
) -> WireCompatibility { ... }
fn metadata_context() -> UWireMetadataContext
where Self: Sized { ... }
}Expand description
Static selected-wire contract.
Required Associated Constants§
Sourceconst WIRE_ID: WireIdentity
const WIRE_ID: WireIdentity
Stable identity for the full selected wire.
Sourceconst PAYLOAD_FAMILY_ID: WireIdentity
const PAYLOAD_FAMILY_ID: WireIdentity
Payload operation family supported by this selected wire.
Sourceconst METADATA_LAYOUT_ID: WireIdentity
const METADATA_LAYOUT_ID: WireIdentity
Metadata byte layout used by this selected wire.
Sourceconst FORMAT_VERSION: u16
const FORMAT_VERSION: u16
Metadata byte-format version supported by this selected wire.
Provided Methods§
Sourcefn wire_compatibility(actual: &WireIdentityRef) -> WireCompatibility
fn wire_compatibility(actual: &WireIdentityRef) -> WireCompatibility
Checks selected-wire compatibility before public frame exposure.
Sourcefn payload_family_compatibility(actual: &WireIdentityRef) -> WireCompatibility
fn payload_family_compatibility(actual: &WireIdentityRef) -> WireCompatibility
Checks payload-family compatibility before public frame exposure.
Sourcefn metadata_context() -> UWireMetadataContextwhere
Self: Sized,
fn metadata_context() -> UWireMetadataContextwhere
Self: Sized,
Returns the selected-wire metadata context consumed by metadata codecs.
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.