Struct catalyzer::internals::CatalyzerRuntimeBuilder
pub struct CatalyzerRuntimeBuilder { /* private fields */ }
Expand description
A builder for the CatalyzerRuntime
.
Implementations§
§impl CatalyzerRuntimeBuilder
impl CatalyzerRuntimeBuilder
pub fn setup_tokio<F>(
self,
f: F
) -> Result<CatalyzerRuntimeBuilder, CatalyzerError>
pub fn setup_tokio<F>( self, f: F ) -> Result<CatalyzerRuntimeBuilder, CatalyzerError>
Allows you to set up the Tokio runtime.
This function is chainable.
§Example
CatalyzerRuntime::builder()
.setup_tokio(|b| b.enable_all())?
.build()
pub fn build(self) -> Result<CatalyzerRuntime, CatalyzerError>
pub fn build(self) -> Result<CatalyzerRuntime, CatalyzerError>
Builds the CatalyzerRuntime
.
This function consumes the builder, and returns a runtime.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CatalyzerRuntimeBuilder
impl RefUnwindSafe for CatalyzerRuntimeBuilder
impl Send for CatalyzerRuntimeBuilder
impl Sync for CatalyzerRuntimeBuilder
impl Unpin for CatalyzerRuntimeBuilder
impl UnwindSafe for CatalyzerRuntimeBuilder
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