pub struct Context<'a, O>where
O: Streams,{ /* private fields */ }Implementations§
Source§impl<O> Context<'_, O>where
O: Streams,
impl<O> Context<'_, O>where
O: Streams,
pub fn call(&self) -> &CallContext
pub fn resource<T>(&self) -> Arc<T> ⓘ
pub fn streams(&self) -> &<O as Streams>::StreamEndpoints
pub fn operation<T>( &self, request: T, ) -> impl Future<Output = Result<Response<<T as OperationDeclaration>::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