pub struct ManagerBuilder { /* private fields */ }
Expand description
Builder for Manager with optional services
Implementations§
Source§impl ManagerBuilder
impl ManagerBuilder
Sourcepub fn new(
mux_backend: Arc<dyn MuxBackend>,
state_manager: StateManager,
) -> Self
pub fn new( mux_backend: Arc<dyn MuxBackend>, state_manager: StateManager, ) -> Self
Create a new builder
Sourcepub fn with_file_manager(self, file_manager: Arc<dyn FileManager>) -> Self
pub fn with_file_manager(self, file_manager: Arc<dyn FileManager>) -> Self
Set file manager
Sourcepub fn with_search_provider(
self,
search_provider: Arc<dyn SearchProvider>,
) -> Self
pub fn with_search_provider( self, search_provider: Arc<dyn SearchProvider>, ) -> Self
Set search provider
Sourcepub fn with_command_history(
self,
command_history: Arc<dyn CommandHistory>,
) -> Self
pub fn with_command_history( self, command_history: Arc<dyn CommandHistory>, ) -> Self
Set command history
Auto Trait Implementations§
impl Freeze for ManagerBuilder
impl !RefUnwindSafe for ManagerBuilder
impl Send for ManagerBuilder
impl Sync for ManagerBuilder
impl Unpin for ManagerBuilder
impl !UnwindSafe for ManagerBuilder
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