pub struct InputIngressContract { /* private fields */ }Expand description
Complete named ingress contract for an executable provider binding.
Implementations§
Source§impl InputIngressContract
impl InputIngressContract
Sourcepub fn new(
placement: InputPlacementContract,
signature: InputSignatureContract,
runtime_input: RuntimeInputContract,
resident_output: ResidentOutputContract,
) -> Self
pub fn new( placement: InputPlacementContract, signature: InputSignatureContract, runtime_input: RuntimeInputContract, resident_output: ResidentOutputContract, ) -> Self
Assemble the four distinct ingress contracts atomically.
§Examples
use tenferro_runtime::{
InputIngressContract, InputPlacementContract, InputSignatureContract,
ResidentOutputContract, RuntimeInputContract,
};
let ingress = InputIngressContract::new(
InputPlacementContract::new(|_, _| true),
InputSignatureContract::new(|_, _, _, _| true),
RuntimeInputContract::new(|_, _| true),
ResidentOutputContract::new(|_, _| true),
);
let _ = ingress;Trait Implementations§
Source§impl Clone for InputIngressContract
impl Clone for InputIngressContract
Source§fn clone(&self) -> InputIngressContract
fn clone(&self) -> InputIngressContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InputIngressContract
impl !RefUnwindSafe for InputIngressContract
impl Send for InputIngressContract
impl Sync for InputIngressContract
impl Unpin for InputIngressContract
impl UnsafeUnpin for InputIngressContract
impl !UnwindSafe for InputIngressContract
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more