pub trait LpMessageForwarded: Sized {
type Domain;
// Required methods
fn is_forwarded(&self) -> bool;
fn unwrap_forwarded(self) -> Option<(Self::Domain, H160, Self)>;
fn try_wrap_forward(
domain: Self::Domain,
forwarding_contract: H160,
message: Self
) -> Result<Self, DispatchError>;
}
Expand description
Behavior of a message that can be forwarded
Required Associated Types§
Required Methods§
sourcefn is_forwarded(&self) -> bool
fn is_forwarded(&self) -> bool
Checks whether a message is a forwarded one.
sourcefn unwrap_forwarded(self) -> Option<(Self::Domain, H160, Self)>
fn unwrap_forwarded(self) -> Option<(Self::Domain, H160, Self)>
Unwraps a forwarded message.
sourcefn try_wrap_forward(
domain: Self::Domain,
forwarding_contract: H160,
message: Self
) -> Result<Self, DispatchError>
fn try_wrap_forward( domain: Self::Domain, forwarding_contract: H160, message: Self ) -> Result<Self, DispatchError>
Attempts to wrap into a forwarded message.
Object Safety§
This trait is not object safe.