pub struct Value<T>(/* private fields */);👎Deprecated: It is probably a bad idea to use this crate
Expand description
A value that may eventually resolve.
Implementations§
Source§impl<T> Value<T>
impl<T> Value<T>
Sourcepub fn immediate(val: T) -> Self
👎Deprecated: It is probably a bad idea to use this crate
pub fn immediate(val: T) -> Self
Create a Value that is already resolved.
This is useful in code where once branch may need to use the driving thread, but another can be resolved immediately.
pub fn is_resolved(&self) -> bool
👎Deprecated: It is probably a bad idea to use this crate
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Value<T>
impl<T> !RefUnwindSafe for Value<T>
impl<T> Send for Value<T>where
T: Send,
impl<T> Sync for Value<T>where
T: Send,
impl<T> !UnwindSafe for Value<T>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more