referrerpolicy=no-referrer-when-downgrade
bp_messages

Trait LaneIdType

Source
pub trait LaneIdType:
    Clone
    + Copy
    + Codec
    + EncodeLike
    + Debug
    + Default
    + PartialEq
    + Eq
    + Ord
    + TypeInfo
    + MaxEncodedLen
    + Serialize
    + DeserializeOwned {
    // Required method
    fn try_new<E: Ord + Encode>(endpoint1: E, endpoint2: E) -> Result<Self, ()>;
}
Expand description

Trait representing a generic LaneId type.

Required Methods§

Source

fn try_new<E: Ord + Encode>(endpoint1: E, endpoint2: E) -> Result<Self, ()>

Creates a new LaneId type (if supported).

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.

Implementors§