pub struct ForwardHandle<'a, C: ReceiverComplete<'a, ForwardRef>> { /* private fields */ }
Expand description
A handle that can be used to fulfill a forward reference.
The C
type parameter specifies the collection type that can be used to complete the handle.
Implementations§
Source§impl<'a, C: ReceiverComplete<'a, ForwardRef>> ForwardHandle<'a, C>
impl<'a, C: ReceiverComplete<'a, ForwardRef>> ForwardHandle<'a, C>
Sourcepub fn complete(self, stream: impl Into<C>)
pub fn complete(self, stream: impl Into<C>)
Completes the forward reference with the given live collection. The initial forward reference
collection created in Location::forward_ref
will resolve to this value.
The provided value must not depend synchronously (in the same tick) on the forward reference collection, as doing so would create a dependency cycle. Asynchronous cycles (outside a tick) are allowed, since the program can continue running while the cycle is processed.
Trait Implementations§
Source§impl<'a, C: ReceiverComplete<'a, ForwardRef>> Drop for ForwardHandle<'a, C>
impl<'a, C: ReceiverComplete<'a, ForwardRef>> Drop for ForwardHandle<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for ForwardHandle<'a, C>
impl<'a, C> RefUnwindSafe for ForwardHandle<'a, C>where
C: RefUnwindSafe,
impl<'a, C> !Send for ForwardHandle<'a, C>
impl<'a, C> !Sync for ForwardHandle<'a, C>
impl<'a, C> Unpin for ForwardHandle<'a, C>where
C: Unpin,
impl<'a, C> UnwindSafe for ForwardHandle<'a, C>where
C: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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