pub struct ContextManager { /* private fields */ }Expand description
Context manager for handling multiple contexts
Implementations§
Source§impl ContextManager
impl ContextManager
Sourcepub fn add_context(&mut self, ctx: *mut Context)
pub fn add_context(&mut self, ctx: *mut Context)
Add a context to be managed
Sourcepub fn remove_context(&mut self, ctx: *mut Context) -> bool
pub fn remove_context(&mut self, ctx: *mut Context) -> bool
Remove a context from management (doesn’t destroy it)
Sourcepub fn destroy_all(&mut self)
pub fn destroy_all(&mut self)
Destroy all managed contexts
Trait Implementations§
Source§impl Default for ContextManager
impl Default for ContextManager
Auto Trait Implementations§
impl Freeze for ContextManager
impl RefUnwindSafe for ContextManager
impl !Send for ContextManager
impl !Sync for ContextManager
impl Unpin for ContextManager
impl UnwindSafe for ContextManager
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