referrerpolicy=no-referrer-when-downgrade

Trait bp_messages::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).

Object Safety§

This trait is not object safe.

Implementors§