pub struct BootFactory;Expand description
NestFactory-style entrypoint for building managed Boot applications.
Implementations§
Source§impl BootFactory
impl BootFactory
pub fn create<M>(module: M) -> Result<BootApplicationHandle>where
M: Module,
pub fn create_arc(module: Arc<dyn Module>) -> Result<BootApplicationHandle>
pub fn create_with_builder( builder: BootApplicationBuilder, ) -> Result<BootApplicationHandle>
pub async fn create_async<M>(module: M) -> Result<BootApplicationHandle>where
M: Module,
pub async fn create_arc_async( module: Arc<dyn Module>, ) -> Result<BootApplicationHandle>
pub async fn create_with_builder_async( builder: BootApplicationBuilder, ) -> Result<BootApplicationHandle>
pub fn create_application_context<M>(
module: M,
) -> Result<BootApplicationContext>where
M: Module,
pub fn create_application_context_arc( module: Arc<dyn Module>, ) -> Result<BootApplicationContext>
pub fn create_application_context_with_builder( builder: BootApplicationBuilder, ) -> Result<BootApplicationContext>
pub async fn create_application_context_async<M>(
module: M,
) -> Result<BootApplicationContext>where
M: Module,
pub async fn create_application_context_arc_async( module: Arc<dyn Module>, ) -> Result<BootApplicationContext>
pub async fn create_application_context_with_builder_async( builder: BootApplicationBuilder, ) -> Result<BootApplicationContext>
pub fn create_microservice<M, T>(
module: M,
transport: T,
) -> Result<BootMicroservice<T>>where
M: Module,
T: MessageTransport,
pub fn create_microservice_with_builder<T>(
builder: BootApplicationBuilder,
transport: T,
) -> Result<BootMicroservice<T>>where
T: MessageTransport,
pub async fn create_microservice_async<M, T>(
module: M,
transport: T,
) -> Result<BootMicroservice<T>>where
M: Module,
T: MessageTransport,
pub async fn create_microservice_with_builder_async<T>(
builder: BootApplicationBuilder,
transport: T,
) -> Result<BootMicroservice<T>>where
T: MessageTransport,
Auto Trait Implementations§
impl Freeze for BootFactory
impl RefUnwindSafe for BootFactory
impl Send for BootFactory
impl Sync for BootFactory
impl Unpin for BootFactory
impl UnsafeUnpin for BootFactory
impl UnwindSafe for BootFactory
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