[−][src]Struct async_wormhole::AsyncWormhole
Implementations
impl<'a, Output, TLS> AsyncWormhole<'a, Output, TLS>
[src]
pub fn new<F>(f: F) -> Result<Self, Error> where
F: FnOnce(AsyncYielder<'_, Output>) -> Output + 'a,
[src]
F: FnOnce(AsyncYielder<'_, Output>) -> Output + 'a,
Takes a closure and returns an impl Future
that can be awaited on.
pub fn preserve_tls(&mut self, tls: &'static LocalKey<Cell<*const TLS>>)
[src]
Takes a reference to the to be preserved TLS variable.
Trait Implementations
impl<'a, Output, TLS: Unpin> Future for AsyncWormhole<'a, Output, TLS>
[src]
type Output = Option<Output>
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
[src]
impl<Output, TLS, '_> Send for AsyncWormhole<'_, Output, TLS>
[src]
Auto Trait Implementations
impl<'a, Output, TLS> !RefUnwindSafe for AsyncWormhole<'a, Output, TLS>
impl<'a, Output, TLS> !Sync for AsyncWormhole<'a, Output, TLS>
impl<'a, Output, TLS> Unpin for AsyncWormhole<'a, Output, TLS>
impl<'a, Output, TLS> UnwindSafe for AsyncWormhole<'a, Output, TLS> where
Output: RefUnwindSafe,
TLS: RefUnwindSafe,
Output: RefUnwindSafe,
TLS: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,