pub struct Runtime { /* private fields */ }Implementations§
Source§impl Runtime
impl Runtime
pub fn init(config: Config) -> Result<Self, BootstrapError<LaunchError>>
Trait Implementations§
Source§impl TryService for Runtime
impl TryService for Runtime
Source§type ErrorType = ClientError
type ErrorType = ClientError
Type of the error which is produced in case of service failure and
is returned from the internal
Self::try_run_loop methodSource§fn try_run_loop(self) -> Result<(), Self::ErrorType>
fn try_run_loop(self) -> Result<(), Self::ErrorType>
Main failable run loop implementation. Must produce an error of type
TryService::ErrorType or never return.Source§fn run_or_panic(self, service_name: &str)
fn run_or_panic(self, service_name: &str)
NB: Do not reimplement this one: the function keeps in check that if the
failure happens during run loop, the program will panic reporting the
failure. To implement the actual run loop please provide implementation
for
Self::try_run_loopAuto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl Send for Runtime
impl !Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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