Struct atat::response_slot::ResponseSlot
source · pub struct ResponseSlot<const N: usize>(/* private fields */);
Implementations§
source§impl<const N: usize> ResponseSlot<N>
impl<const N: usize> ResponseSlot<N>
pub const fn new() -> Self
sourcepub async fn get<'a>(&'a self) -> ResponseSlotGuard<'a, N>
pub async fn get<'a>(&'a self) -> ResponseSlotGuard<'a, N>
Wait for a response to be signaled and get a guard to the response
sourcepub fn try_get<'a>(&'a self) -> Option<ResponseSlotGuard<'a, N>>
pub fn try_get<'a>(&'a self) -> Option<ResponseSlotGuard<'a, N>>
If signaled, get a guard to the response
Auto Trait Implementations§
impl<const N: usize> !Freeze for ResponseSlot<N>
impl<const N: usize> !RefUnwindSafe for ResponseSlot<N>
impl<const N: usize> Send for ResponseSlot<N>
impl<const N: usize> Sync for ResponseSlot<N>
impl<const N: usize> Unpin for ResponseSlot<N>
impl<const N: usize> UnwindSafe for ResponseSlot<N>
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