pub struct NativeStreamHandle<C: StreamCapability> { /* private fields */ }Expand description
Typed, immutable stream endpoints materialized before App boot completes.
Implementations§
Source§impl<C: StreamCapability> NativeStreamHandle<C>
impl<C: StreamCapability> NativeStreamHandle<C>
Sourcepub fn binding_count(&self) -> usize
pub fn binding_count(&self) -> usize
Returns the number of provider endpoints captured by this handle.
Sourcepub async fn open(
&self,
operation: &str,
request: C::OpenRequest,
) -> Result<Result<NativeStream<C>, C::DomainError>, RuntimeFailure>
pub async fn open( &self, operation: &str, request: C::OpenRequest, ) -> Result<Result<NativeStream<C>, C::DomainError>, RuntimeFailure>
Opens one stream with a fresh invocation context.
Sourcepub async fn open_with_context(
&self,
operation: &str,
context: InvocationContext,
request: C::OpenRequest,
) -> Result<Result<NativeStream<C>, C::DomainError>, RuntimeFailure>
pub async fn open_with_context( &self, operation: &str, context: InvocationContext, request: C::OpenRequest, ) -> Result<Result<NativeStream<C>, C::DomainError>, RuntimeFailure>
Opens one stream with an explicit propagated Invocation Context.
Trait Implementations§
Auto Trait Implementations§
impl<C> !RefUnwindSafe for NativeStreamHandle<C>
impl<C> !Send for NativeStreamHandle<C>
impl<C> !Sync for NativeStreamHandle<C>
impl<C> !UnwindSafe for NativeStreamHandle<C>
impl<C> Freeze for NativeStreamHandle<C>
impl<C> Unpin for NativeStreamHandle<C>
impl<C> UnsafeUnpin for NativeStreamHandle<C>
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