pub struct DispatcherBuilder { /* private fields */ }Expand description
Dispatcher builder
Implementations§
Source§impl DispatcherBuilder
impl DispatcherBuilder
Sourcepub fn with_backend(
self,
provider_id: ProviderId,
backend_handler: BackEndHandler,
) -> Self
pub fn with_backend( self, provider_id: ProviderId, backend_handler: BackEndHandler, ) -> Self
Add a BackEndHandler with a specific Provider ID to the dispatcher
Sourcepub fn with_backends(
self,
new_backends: HashMap<ProviderId, BackEndHandler>,
) -> Self
pub fn with_backends( self, new_backends: HashMap<ProviderId, BackEndHandler>, ) -> Self
Add multiple BackEndHandler to the dispatcher in one call
Sourcepub fn build(self) -> Result<Dispatcher>
pub fn build(self) -> Result<Dispatcher>
Build the builder into a dispatcher
Trait Implementations§
Source§impl Debug for DispatcherBuilder
impl Debug for DispatcherBuilder
Source§impl Default for DispatcherBuilder
impl Default for DispatcherBuilder
Source§fn default() -> DispatcherBuilder
fn default() -> DispatcherBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DispatcherBuilder
impl !RefUnwindSafe for DispatcherBuilder
impl Send for DispatcherBuilder
impl Sync for DispatcherBuilder
impl Unpin for DispatcherBuilder
impl !UnwindSafe for DispatcherBuilder
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