pub struct AsyncServiceScope { /* private fields */ }Expand description
Wraps any synchronous scope, preferring its async-disposal capability when available.
Implementations§
Source§impl AsyncServiceScope
impl AsyncServiceScope
pub fn new(scope: Rc<dyn IServiceScope>) -> Self
pub fn service_provider(&self) -> &ServiceProvider
pub fn dispose(&self) -> ServiceResult<()>
pub fn dispose_async(&self) -> Task<()> ⓘ
Trait Implementations§
Source§impl Clone for AsyncServiceScope
impl Clone for AsyncServiceScope
Source§impl IAsyncDisposable for AsyncServiceScope
impl IAsyncDisposable for AsyncServiceScope
Source§impl IDisposable for AsyncServiceScope
impl IDisposable for AsyncServiceScope
Source§impl IServiceScope for AsyncServiceScope
impl IServiceScope for AsyncServiceScope
fn service_provider(&self) -> &ServiceProvider
fn async_disposable(&self) -> Option<&dyn IAsyncDisposable>
fn dispose_scope(&self) -> ServiceResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncServiceScope
impl !Send for AsyncServiceScope
impl !Sync for AsyncServiceScope
impl !UnwindSafe for AsyncServiceScope
impl Freeze for AsyncServiceScope
impl Unpin for AsyncServiceScope
impl UnsafeUnpin for AsyncServiceScope
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