pub struct WaitMap<K: Ord + Debug, T>(/* private fields */);Implementations§
Source§impl<K: Ord + Debug, T> WaitMap<K, T>
impl<K: Ord + Debug, T> WaitMap<K, T>
pub fn new(id_list: impl Iterator<Item = K>) -> Self
pub fn empty() -> Self
pub fn append(&self, id_ls: impl Iterator<Item = K>)
Sourcepub unsafe fn set_result(&self, id: K, result: T)
pub unsafe fn set_result(&self, id: K, result: T)
Sets the result for the given id.
§Safety
This function is unsafe because it assumes that the id exists in the map.
pub fn preper_id(&self, id: &K) -> Result<(), TransferError>
pub fn wait_for_result<'a>( &self, id: K, on_ready: Option<CallbackOnReady>, ) -> Waiter<'a, T> ⓘ
Trait Implementations§
impl<K: Ord + Debug, T> Send for WaitMap<K, T>
impl<K: Ord + Debug, T> Sync for WaitMap<K, T>
Auto Trait Implementations§
impl<K, T> Freeze for WaitMap<K, T>
impl<K, T> !RefUnwindSafe for WaitMap<K, T>
impl<K, T> Unpin for WaitMap<K, T>
impl<K, T> !UnwindSafe for WaitMap<K, 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