pub struct Context<'a, O: Streams> { /* private fields */ }Implementations§
Source§impl<O: Streams> Context<'_, O>
impl<O: Streams> Context<'_, O>
pub fn call(&self) -> &CallContext
pub fn resource<T: Send + Sync + 'static>(&self) -> Arc<T> ⓘwhere
O: Requires<T>,
pub fn streams(&self) -> &O::StreamEndpoints
pub fn operation<T>( &self, request: T, ) -> impl Future<Output = Result<Response<T::Response>, InvocationError>> + Send + use<'_, O, T>
Auto Trait Implementations§
impl<'a, O> !RefUnwindSafe for Context<'a, O>
impl<'a, O> !UnwindSafe for Context<'a, O>
impl<'a, O> Freeze for Context<'a, O>
impl<'a, O> Send for Context<'a, O>
impl<'a, O> Sync for Context<'a, O>
impl<'a, O> Unpin for Context<'a, O>
impl<'a, O> UnsafeUnpin for Context<'a, O>
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