pub struct Bindings<'a> { /* private fields */ }Implementations§
Source§impl Bindings<'_>
impl Bindings<'_>
pub fn register_operations<C, R>( &mut self, lane: impl Lane, resources: Arc<R>, ) -> Result<()>
pub fn register_wire_operations<C, R>( &mut self, lane: impl Lane, resources: Arc<R>, ) -> Result<()>
pub fn register_operation<T>( &mut self, lane: impl Lane, resources: Arc<T::Resources>, ) -> Result<()>
pub fn register_operation_id<T>( &mut self, id: impl Into<String>, lane: impl Lane, resources: Arc<T::Resources>, ) -> Result<()>
pub fn register_wire_operation<T>(
&mut self,
lane: impl Lane,
resources: Arc<T::Resources>,
) -> Result<()>where
T: for<'ctx> Operation<Context<'ctx> = Context<'ctx>>,
T::Declaration: OperationDeclaration + Message + Described,
pub fn register_wire_contract<T>(
&mut self,
contract: &Contract,
lane: impl Lane,
resources: Arc<T::Resources>,
) -> Result<()>where
T: for<'ctx> Operation<Context<'ctx> = Context<'ctx>>,
T::Declaration: OperationDeclaration + Message + Described,
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Bindings<'a>
impl<'a> !UnwindSafe for Bindings<'a>
impl<'a> Freeze for Bindings<'a>
impl<'a> Send for Bindings<'a>
impl<'a> Sync for Bindings<'a>
impl<'a> Unpin for Bindings<'a>
impl<'a> UnsafeUnpin for Bindings<'a>
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