Trait ibc_types_domain_type::DomainType
source · pub trait DomainTypewhere
Self: Clone + Sized + TypeUrl + TryFrom<Self::Proto>,
Self::Proto: Message + Default + From<Self> + Send + Sync + 'static,
<Self as TryFrom<Self::Proto>>::Error: Into<Error> + Send + Sync + 'static,{
type Proto;
// Provided methods
fn encode_to_vec(&self) -> Vec<u8> { ... }
fn to_proto(&self) -> Self::Proto { ... }
fn decode<B: Buf>(buf: B) -> Result<Self, Error> { ... }
}
Expand description
A marker type that captures the relationships between a domain type (Self
) and a protobuf type (Self::Proto
).
Required Associated Types§
Provided Methods§
sourcefn encode_to_vec(&self) -> Vec<u8>
fn encode_to_vec(&self) -> Vec<u8>
Encode this domain type to a byte vector, via proto type P
.
Object Safety§
This trait is not object safe.