pub struct MacosExtensionRequestLease { /* private fields */ }Expand description
Non-cloneable ownership proof for one request accepted before closing.
Implementations§
Source§impl MacosExtensionRequestLease
impl MacosExtensionRequestLease
Sourcepub fn generation(&self) -> SessionGeneration
pub fn generation(&self) -> SessionGeneration
Returns the generation that accepted the request.
Sourcepub fn accepts_completion(&self, session: &MacosExtensionSession) -> bool
pub fn accepts_completion(&self, session: &MacosExtensionSession) -> bool
Returns whether completion still belongs to the supplied extension instance.
Trait Implementations§
Source§impl Debug for MacosExtensionRequestLease
impl Debug for MacosExtensionRequestLease
Auto Trait Implementations§
impl Freeze for MacosExtensionRequestLease
impl RefUnwindSafe for MacosExtensionRequestLease
impl Send for MacosExtensionRequestLease
impl Sync for MacosExtensionRequestLease
impl Unpin for MacosExtensionRequestLease
impl UnwindSafe for MacosExtensionRequestLease
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