pub struct RelayContract<P = PassthroughRelayPolicy> { /* private fields */ }Implementations§
Source§impl<P> RelayContract<P>where
P: RelayPolicy,
impl<P> RelayContract<P>where
P: RelayPolicy,
pub fn new(config: RelayContractConfig, policy: P) -> Self
pub fn config(&self) -> RelayContractConfig
pub fn apply( &self, direction: RelayDirection, payload: Bytes, ) -> Result<Option<Bytes>, RelayContractError>
Auto Trait Implementations§
impl<P> Freeze for RelayContract<P>where
P: Freeze,
impl<P> RefUnwindSafe for RelayContract<P>where
P: RefUnwindSafe,
impl<P> Send for RelayContract<P>where
P: Send,
impl<P> Sync for RelayContract<P>where
P: Sync,
impl<P> Unpin for RelayContract<P>where
P: Unpin,
impl<P> UnsafeUnpin for RelayContract<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for RelayContract<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more