pub(crate) struct ArcInterface {
pub instance: Arc<RwLock<dyn Interface>>,
pub spawn_tasks_for_methods: bool,
}
Expand description
A type for a reference-counted Interface trait-object, with associated run-time details and a manual Debug impl.
Fields§
§instance: Arc<RwLock<dyn Interface>>
§spawn_tasks_for_methods: bool
Implementations§
Trait Implementations§
Source§impl Clone for ArcInterface
impl Clone for ArcInterface
Source§fn clone(&self) -> ArcInterface
fn clone(&self) -> ArcInterface
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 ArcInterface
impl !RefUnwindSafe for ArcInterface
impl Send for ArcInterface
impl Sync for ArcInterface
impl Unpin for ArcInterface
impl !UnwindSafe for ArcInterface
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