pub struct ShortCircuitingComputation<T, Controller>where
T: Send,
Controller: ComputationController,{ /* private fields */ }
Expand description
Shared data of a short-circuiting computation.
Implementations§
Source§impl<T, Controller> ShortCircuitingComputation<T, Controller>where
T: Send,
Controller: ComputationController,
impl<T, Controller> ShortCircuitingComputation<T, Controller>where
T: Send,
Controller: ComputationController,
Sourcepub fn new() -> Self
Available on crate feature unstable-enable
only.
pub fn new() -> Self
unstable-enable
only.§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Sourcepub fn handle<'a>(
&'a self,
controller: Controller,
) -> ShortCircuitingComputationHandle<'a, T, Controller>
Available on crate feature unstable-enable
only.
pub fn handle<'a>( &'a self, controller: Controller, ) -> ShortCircuitingComputationHandle<'a, T, Controller>
unstable-enable
only.§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Sourcepub fn finish(self) -> Result<Option<T>, Controller::Abort>
Available on crate feature unstable-enable
only.
pub fn finish(self) -> Result<Option<T>, Controller::Abort>
unstable-enable
only.§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Auto Trait Implementations§
impl<T, Controller> !Freeze for ShortCircuitingComputation<T, Controller>
impl<T, Controller> RefUnwindSafe for ShortCircuitingComputation<T, Controller>
impl<T, Controller> Send for ShortCircuitingComputation<T, Controller>
impl<T, Controller> Sync for ShortCircuitingComputation<T, Controller>
impl<T, Controller> Unpin for ShortCircuitingComputation<T, Controller>
impl<T, Controller> UnwindSafe for ShortCircuitingComputation<T, Controller>where
<Controller as ComputationController>::Abort: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + 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
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