pub struct WindowsCallbackLease { /* private fields */ }Expand description
Non-cloneable ownership proof for one callback accepted before the closing fence.
Implementations§
Source§impl WindowsCallbackLease
impl WindowsCallbackLease
Sourcepub fn generation(&self) -> SessionGeneration
pub fn generation(&self) -> SessionGeneration
Returns the generation that accepted the callback.
Sourcepub fn accepts_completion(&self, session: &WindowsConnectionSession) -> bool
pub fn accepts_completion(&self, session: &WindowsConnectionSession) -> bool
Checks whether this exact accepted callback may complete against session.
Trait Implementations§
Source§impl Debug for WindowsCallbackLease
impl Debug for WindowsCallbackLease
Auto Trait Implementations§
impl Freeze for WindowsCallbackLease
impl RefUnwindSafe for WindowsCallbackLease
impl Send for WindowsCallbackLease
impl Sync for WindowsCallbackLease
impl Unpin for WindowsCallbackLease
impl UnwindSafe for WindowsCallbackLease
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