pub(crate) struct InnerListener<T, B>{
pub(crate) event: B,
pub(crate) listener: Option<Listener<T>>,
}Fields§
§event: B§listener: Option<Listener<T>>Implementations§
Source§impl<T, B: Borrow<Inner<T>> + Unpin> InnerListener<T, B>
impl<T, B: Borrow<Inner<T>> + Unpin> InnerListener<T, B>
Sourcepub(crate) fn wait_internal(
self: Pin<&mut Self>,
deadline: Option<Instant>,
) -> Option<T>
pub(crate) fn wait_internal( self: Pin<&mut Self>, deadline: Option<Instant>, ) -> Option<T>
Wait until the provided deadline.
Sourcepub(crate) fn wait_with_parker(
self: Pin<&mut Self>,
deadline: Option<Instant>,
parker: &Parker,
unparker: TaskRef<'_>,
) -> Option<T>
pub(crate) fn wait_with_parker( self: Pin<&mut Self>, deadline: Option<Instant>, parker: &Parker, unparker: TaskRef<'_>, ) -> Option<T>
Wait until the provided deadline using the specified parker/unparker pair.
Sourcepub(crate) fn discard(self: Pin<&mut Self>) -> bool
pub(crate) fn discard(self: Pin<&mut Self>) -> bool
Drops this listener and discards its notification (if any) without notifying another active listener.
Sourcepub(crate) fn poll_internal(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<T>
pub(crate) fn poll_internal( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<T>
Poll this listener for a notification.
Trait Implementations§
Source§impl<T, B> Drop for InnerListener<T, B>
impl<T, B> Drop for InnerListener<T, B>
impl<T: Send, B: Borrow<Inner<T>> + Unpin + Send> Send for InnerListener<T, B>
impl<T: Send, B: Borrow<Inner<T>> + Unpin + Sync> Sync for InnerListener<T, B>
Auto Trait Implementations§
impl<T, B> !Freeze for InnerListener<T, B>
impl<T, B> !RefUnwindSafe for InnerListener<T, B>
impl<T, B> !UnwindSafe for InnerListener<T, B>
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