Struct veilid_tools::Eventual
source · pub struct Eventual { /* private fields */ }
Implementations§
source§impl Eventual
impl Eventual
pub fn new() -> Self
pub fn instance_clone<T>(&self, value: T) -> EventualFutureClone<T> ⓘ
pub fn instance_none<T>(&self) -> EventualFutureNone<T> ⓘwhere
T: Unpin,
pub fn instance_empty(&self) -> EventualFutureEmpty ⓘ
pub fn resolve(&self) -> EventualResolvedFuture<Self> ⓘ
Trait Implementations§
source§impl EventualBase for Eventual
impl EventualBase for Eventual
type ResolvedType = ()
fn base_inner(&self) -> MutexGuard<'_, EventualBaseInner<Self::ResolvedType>>
fn resolve_to_value( &self, value: Self::ResolvedType ) -> EventualResolvedFuture<Self> ⓘ
Auto Trait Implementations§
impl Freeze for Eventual
impl !RefUnwindSafe for Eventual
impl Send for Eventual
impl Sync for Eventual
impl Unpin for Eventual
impl !UnwindSafe for Eventual
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> EventualCommon for Twhere
T: EventualBase,
impl<T> EventualCommon for Twhere
T: EventualBase,
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