pub struct CommandMediator<T: ICommandInfo> { /* private fields */ }Expand description
A mediator between the CommandRunner, Worker and CliProgress services.
Implementations§
Source§impl<T: ICommandInfo> CommandMediator<T>
impl<T: ICommandInfo> CommandMediator<T>
Trait Implementations§
Source§impl<T: ICommandInfo + 'static> FromServices for CommandMediator<T>
impl<T: ICommandInfo + 'static> FromServices for CommandMediator<T>
Source§type Error = Infallible
type Error = Infallible
Error type returned by
FromServices::from_services.Source§fn from_services(
_services: &ServiceProvider,
) -> Result<Self, Report<Self::Error>>
fn from_services( _services: &ServiceProvider, ) -> Result<Self, Report<Self::Error>>
Create an instance by resolving dependencies from the
ServiceProvider.Auto Trait Implementations§
impl<T> !Freeze for CommandMediator<T>
impl<T> !RefUnwindSafe for CommandMediator<T>
impl<T> Send for CommandMediator<T>
impl<T> Sync for CommandMediator<T>
impl<T> Unpin for CommandMediator<T>where
<T as ICommandInfo>::Request: Unpin,
<T as ICommandInfo>::Command: Unpin,
<T as ICommandInfo>::Success: Unpin,
<T as ICommandInfo>::Failure: Unpin,
impl<T> UnsafeUnpin for CommandMediator<T>
impl<T> UnwindSafe for CommandMediator<T>where
<T as ICommandInfo>::Request: UnwindSafe,
<T as ICommandInfo>::Command: UnwindSafe,
<T as ICommandInfo>::Success: UnwindSafe,
<T as ICommandInfo>::Failure: UnwindSafe,
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