pub struct ContextHandle { /* private fields */ }Expand description
Handle to a borrowed browser context from the pool.
Implementations§
Source§impl ContextHandle
impl ContextHandle
Sourcepub fn context(&self) -> &dyn RenderContext
pub fn context(&self) -> &dyn RenderContext
Get a reference to the render context.
Sourcepub fn context_mut(&mut self) -> &mut dyn RenderContext
pub fn context_mut(&mut self) -> &mut dyn RenderContext
Get a mutable reference to the render context.
Sourcepub fn take(self) -> Box<dyn RenderContext>
pub fn take(self) -> Box<dyn RenderContext>
Take the context out of the handle (for passing to close).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextHandle
impl !RefUnwindSafe for ContextHandle
impl Send for ContextHandle
impl Sync for ContextHandle
impl Unpin for ContextHandle
impl UnsafeUnpin for ContextHandle
impl !UnwindSafe for ContextHandle
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