pub struct ReadyFutureState<T> { /* private fields */ }Implementations§
Source§impl<T> ReadyFutureState<T>
impl<T> ReadyFutureState<T>
pub fn new() -> ReadyFutureState<T>
pub fn new_completed(value: T) -> ReadyFutureState<T>
pub fn is_fulfilled(&self) -> bool
pub fn is_aborted(&self) -> bool
pub fn is_timeouted(&self) -> bool
pub fn is_terminated(&self) -> bool
pub fn is_pending(&self) -> bool
pub fn is_completed(&self) -> bool
pub fn abort(&mut self)
pub fn timeout(&mut self)
pub fn complete(&mut self, val: T)
pub fn terminate(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ReadyFutureState<T>where
T: Freeze,
impl<T> RefUnwindSafe for ReadyFutureState<T>where
T: RefUnwindSafe,
impl<T> Send for ReadyFutureState<T>where
T: Send,
impl<T> Sync for ReadyFutureState<T>where
T: Sync,
impl<T> Unpin for ReadyFutureState<T>where
T: Unpin,
impl<T> UnwindSafe for ReadyFutureState<T>where
T: 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