pub struct ToolSurfaceFactory { /* private fields */ }Expand description
Factory that provides pre-built tool executors for each surface variant.
Constructed once during AppState initialization. Call sites
obtain the appropriate executor by calling ToolSurfaceFactory::get.
Implementations§
Source§impl ToolSurfaceFactory
impl ToolSurfaceFactory
Sourcepub fn new(
base: Arc<dyn ToolExecutor>,
with_task: Arc<dyn ToolExecutor>,
root: Arc<dyn ToolExecutor>,
) -> Self
pub fn new( base: Arc<dyn ToolExecutor>, with_task: Arc<dyn ToolExecutor>, root: Arc<dyn ToolExecutor>, ) -> Self
Create a factory from pre-built tool executors.
Sourcepub fn get(&self, surface: ToolSurface) -> Arc<dyn ToolExecutor> ⓘ
pub fn get(&self, surface: ToolSurface) -> Arc<dyn ToolExecutor> ⓘ
Return the tool executor for the requested surface.
Child and Base both return the same underlying executor.
Trait Implementations§
Source§impl Clone for ToolSurfaceFactory
impl Clone for ToolSurfaceFactory
Source§fn clone(&self) -> ToolSurfaceFactory
fn clone(&self) -> ToolSurfaceFactory
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 ToolSurfaceFactory
impl !RefUnwindSafe for ToolSurfaceFactory
impl Send for ToolSurfaceFactory
impl Sync for ToolSurfaceFactory
impl Unpin for ToolSurfaceFactory
impl UnsafeUnpin for ToolSurfaceFactory
impl !UnwindSafe for ToolSurfaceFactory
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