pub struct BootMicroservice<T> { /* private fields */ }Expand description
Managed standalone microservice built from Boot message patterns.
Implementations§
Source§impl<T> BootMicroservice<T>where
T: MessageTransport,
impl<T> BootMicroservice<T>where
T: MessageTransport,
pub fn new(app: BootApplication, transport: T) -> Self
pub fn app(&self) -> &BootApplication
pub fn transport(&self) -> &T
pub fn into_app(self) -> BootApplication
pub fn build_client(&self) -> Result<T::Output>
pub fn is_initialized(&self) -> bool
pub fn enable_shutdown_hooks<I>(&mut self, signals: I) -> &mut Selfwhere
I: IntoIterator<Item = ShutdownSignal>,
pub fn enable_default_shutdown_hooks(&mut self) -> &mut Self
pub async fn init(&mut self) -> Result<()>
pub async fn close(&mut self) -> Result<()>
pub async fn close_with_signal( &mut self, signal: impl Into<String>, ) -> Result<()>
pub async fn listen(&mut self) -> Result<()>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for BootMicroservice<T>
impl<T> !UnwindSafe for BootMicroservice<T>
impl<T> Freeze for BootMicroservice<T>where
T: Freeze,
impl<T> Send for BootMicroservice<T>where
T: Send,
impl<T> Sync for BootMicroservice<T>where
T: Sync,
impl<T> Unpin for BootMicroservice<T>where
T: Unpin,
impl<T> UnsafeUnpin for BootMicroservice<T>where
T: UnsafeUnpin,
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