pub struct MacosExtensionSession { /* private fields */ }Expand description
Shareable lifecycle fence for one File Provider extension instance.
Implementations§
Source§impl MacosExtensionSession
impl MacosExtensionSession
Sourcepub fn generation(&self) -> SessionGeneration
pub fn generation(&self) -> SessionGeneration
Returns the monotonic extension-instance generation.
Sourcepub fn active_requests(&self) -> usize
pub fn active_requests(&self) -> usize
Returns the number of accepted requests still owned by downstream work.
Sourcepub fn begin_request(
&self,
callback_generation: SessionGeneration,
) -> Result<MacosExtensionRequestLease>
pub fn begin_request( &self, callback_generation: SessionGeneration, ) -> Result<MacosExtensionRequestLease>
Accepts one request only while the exact generation is accepting work.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn begin_closing(&self) -> bool
pub fn begin_closing(&self) -> bool
Moves Accepting -> Closing and rejects later request ingress.
Sourcepub fn mark_disconnected(&self) -> Result<()>
pub fn mark_disconnected(&self) -> Result<()>
Marks the native extension/domain bridge disconnected and begins draining accepted work.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Trait Implementations§
Source§impl Clone for MacosExtensionSession
impl Clone for MacosExtensionSession
Source§fn clone(&self) -> MacosExtensionSession
fn clone(&self) -> MacosExtensionSession
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MacosExtensionSession
impl RefUnwindSafe for MacosExtensionSession
impl Send for MacosExtensionSession
impl Sync for MacosExtensionSession
impl Unpin for MacosExtensionSession
impl UnwindSafe for MacosExtensionSession
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