pub struct HermesRuntimeComponents;Trait Implementations§
Source§impl ErrorRaiser<HermesRuntime, Error> for HermesRuntimeComponents
 
impl ErrorRaiser<HermesRuntime, Error> for HermesRuntimeComponents
fn raise_error(e: IoError) -> TokioRuntimeError
Source§impl ErrorRaiser<HermesRuntime, ExitStatus> for HermesRuntimeComponents
 
impl ErrorRaiser<HermesRuntime, ExitStatus> for HermesRuntimeComponents
fn raise_error(exit_status: ExitStatus) -> TokioRuntimeError
Source§impl ErrorRaiser<HermesRuntime, Utf8Error> for HermesRuntimeComponents
 
impl ErrorRaiser<HermesRuntime, Utf8Error> for HermesRuntimeComponents
fn raise_error(e: Utf8Error) -> TokioRuntimeError
Auto Trait Implementations§
impl Freeze for HermesRuntimeComponents
impl RefUnwindSafe for HermesRuntimeComponents
impl Send for HermesRuntimeComponents
impl Sync for HermesRuntimeComponents
impl Unpin for HermesRuntimeComponents
impl UnwindSafe for HermesRuntimeComponents
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
Source§impl<Runtime, Component, Delegate> BoxedStreamTypeProvider<Runtime> for Componentwhere
    Runtime: Async,
    Component: DelegateComponent<StreamTypeComponent, Delegate = Delegate>,
    Delegate: BoxedStreamTypeProvider<Runtime>,
 
impl<Runtime, Component, Delegate> BoxedStreamTypeProvider<Runtime> for Componentwhere
    Runtime: Async,
    Component: DelegateComponent<StreamTypeComponent, Delegate = Delegate>,
    Delegate: BoxedStreamTypeProvider<Runtime>,
fn to_boxed_stream<Item>(
    stream: <Component as ProvideStreamType<Runtime>>::Stream<Item>,
) -> Pin<Box<dyn Stream<Item = Item> + Sync + Send>>where
    Item: Async,
fn from_boxed_stream<Item>(
    stream: Pin<Box<dyn Stream<Item = Item> + Sync + Send>>,
) -> <Component as ProvideStreamType<Runtime>>::Stream<Item>where
    Item: Async,
Source§impl<Component, Runtime> ChannelCreator<Runtime> for Componentwhere
    Runtime: HasChannelTypes,
    Component: DelegateComponent<ChannelCreatorComponent>,
    <Component as DelegateComponent<ChannelCreatorComponent>>::Delegate: ChannelCreator<Runtime>,
 
impl<Component, Runtime> ChannelCreator<Runtime> for Componentwhere
    Runtime: HasChannelTypes,
    Component: DelegateComponent<ChannelCreatorComponent>,
    <Component as DelegateComponent<ChannelCreatorComponent>>::Delegate: ChannelCreator<Runtime>,
Source§fn new_channel<T>() -> (<Runtime as HasChannelTypes>::Sender<T>, <Runtime as HasChannelTypes>::Receiver<T>)where
    T: Async,
 
fn new_channel<T>() -> (<Runtime as HasChannelTypes>::Sender<T>, <Runtime as HasChannelTypes>::Receiver<T>)where
    T: Async,
Given a generic payload type 
T, create a
Sender<T> and
Receiver<T> pair that are connected. Read moreSource§impl<Component, Runtime> ChannelOnceCreator<Runtime> for Componentwhere
    Runtime: HasChannelOnceTypes,
    Component: DelegateComponent<ChannelOnceCreatorComponent>,
    <Component as DelegateComponent<ChannelOnceCreatorComponent>>::Delegate: ChannelOnceCreator<Runtime>,
 
impl<Component, Runtime> ChannelOnceCreator<Runtime> for Componentwhere
    Runtime: HasChannelOnceTypes,
    Component: DelegateComponent<ChannelOnceCreatorComponent>,
    <Component as DelegateComponent<ChannelOnceCreatorComponent>>::Delegate: ChannelOnceCreator<Runtime>,
fn new_channel_once<T>() -> (<Runtime as HasChannelOnceTypes>::SenderOnce<T>, <Runtime as HasChannelOnceTypes>::ReceiverOnce<T>)where
    T: Async,
Source§impl<Component, Runtime> ChannelOnceUser<Runtime> for Componentwhere
    Runtime: HasChannelOnceTypes + HasErrorType,
    Component: DelegateComponent<ChannelOnceUserComponent>,
    <Component as DelegateComponent<ChannelOnceUserComponent>>::Delegate: ChannelOnceUser<Runtime>,
 
impl<Component, Runtime> ChannelOnceUser<Runtime> for Componentwhere
    Runtime: HasChannelOnceTypes + HasErrorType,
    Component: DelegateComponent<ChannelOnceUserComponent>,
    <Component as DelegateComponent<ChannelOnceUserComponent>>::Delegate: ChannelOnceUser<Runtime>,
fn send_once<T>(
    sender: <Runtime as HasChannelOnceTypes>::SenderOnce<T>,
    value: T,
) -> Result<(), <Runtime as HasErrorType>::Error>where
    T: Async,
async fn receive_once<T>(
    receiver: <Runtime as HasChannelOnceTypes>::ReceiverOnce<T>,
) -> Result<T, <Runtime as HasErrorType>::Error>where
    T: Async,
Source§impl<Component, Runtime> ChannelUser<Runtime> for Componentwhere
    Runtime: HasChannelTypes + HasErrorType,
    Component: DelegateComponent<ChannelUserComponent>,
    <Component as DelegateComponent<ChannelUserComponent>>::Delegate: ChannelUser<Runtime>,
 
impl<Component, Runtime> ChannelUser<Runtime> for Componentwhere
    Runtime: HasChannelTypes + HasErrorType,
    Component: DelegateComponent<ChannelUserComponent>,
    <Component as DelegateComponent<ChannelUserComponent>>::Delegate: ChannelUser<Runtime>,
Source§async fn send<T>(
    sender: &<Runtime as HasChannelTypes>::Sender<T>,
    value: T,
) -> Result<(), <Runtime as HasErrorType>::Error>where
    T: Async,
 
async fn send<T>(
    sender: &<Runtime as HasChannelTypes>::Sender<T>,
    value: T,
) -> Result<(), <Runtime as HasErrorType>::Error>where
    T: Async,
Source§async fn receive<T>(
    receiver: &mut <Runtime as HasChannelTypes>::Receiver<T>,
) -> Result<T, <Runtime as HasErrorType>::Error>where
    T: Async,
 
async fn receive<T>(
    receiver: &mut <Runtime as HasChannelTypes>::Receiver<T>,
) -> Result<T, <Runtime as HasErrorType>::Error>where
    T: Async,
Given a reference to 
Receiver<T>,
asynchronously receive a message payload of type T that is sent
over the sender end. Read morefn try_receive<T>(
    receiver: &mut <Runtime as HasChannelTypes>::Receiver<T>,
) -> Result<Option<T>, <Runtime as HasErrorType>::Error>where
    T: Async,
Source§impl<Component, Runtime> ChildProcessStarter<Runtime> for Componentwhere
    Runtime: HasChildProcessType + HasFilePathType + HasErrorType,
    Component: DelegateComponent<ChildProcessStarterComponent>,
    <Component as DelegateComponent<ChildProcessStarterComponent>>::Delegate: ChildProcessStarter<Runtime>,
 
impl<Component, Runtime> ChildProcessStarter<Runtime> for Componentwhere
    Runtime: HasChildProcessType + HasFilePathType + HasErrorType,
    Component: DelegateComponent<ChildProcessStarterComponent>,
    <Component as DelegateComponent<ChildProcessStarterComponent>>::Delegate: ChildProcessStarter<Runtime>,
async fn start_child_process( runtime: &Runtime, command_path: &<Runtime as HasFilePathType>::FilePath, command_args: &[&str], envs: &[(&str, &str)], stdout_path: Option<&<Runtime as HasFilePathType>::FilePath>, stderr_path: Option<&<Runtime as HasFilePathType>::FilePath>, ) -> Result<<Runtime as HasChildProcessType>::ChildProcess, <Runtime as HasErrorType>::Error>
Source§impl<Component, Runtime> ChildProcessWaiter<Runtime> for Componentwhere
    Runtime: HasChildProcessType + HasErrorType,
    Component: DelegateComponent<ChildProcessWaiterComponent>,
    <Component as DelegateComponent<ChildProcessWaiterComponent>>::Delegate: ChildProcessWaiter<Runtime>,
 
impl<Component, Runtime> ChildProcessWaiter<Runtime> for Componentwhere
    Runtime: HasChildProcessType + HasErrorType,
    Component: DelegateComponent<ChildProcessWaiterComponent>,
    <Component as DelegateComponent<ChildProcessWaiterComponent>>::Delegate: ChildProcessWaiter<Runtime>,
async fn wait_child_process( child_process: <Runtime as HasChildProcessType>::ChildProcess, ) -> Result<(), <Runtime as HasErrorType>::Error>
Source§impl<Component, Runtime> CommandExecutor<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<CommandExecutorComponent>,
    <Component as DelegateComponent<CommandExecutorComponent>>::Delegate: CommandExecutor<Runtime>,
 
impl<Component, Runtime> CommandExecutor<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<CommandExecutorComponent>,
    <Component as DelegateComponent<CommandExecutorComponent>>::Delegate: CommandExecutor<Runtime>,
async fn exec_command( runtime: &Runtime, command_path: &<Runtime as HasFilePathType>::FilePath, args: &[&str], ) -> Result<ExecOutput, <Runtime as HasErrorType>::Error>
Source§impl<Component, Runtime> CommandWithEnvsExecutor<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<CommandWithEnvsExecutorComponent>,
    <Component as DelegateComponent<CommandWithEnvsExecutorComponent>>::Delegate: CommandWithEnvsExecutor<Runtime>,
 
impl<Component, Runtime> CommandWithEnvsExecutor<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<CommandWithEnvsExecutorComponent>,
    <Component as DelegateComponent<CommandWithEnvsExecutorComponent>>::Delegate: CommandWithEnvsExecutor<Runtime>,
async fn exec_command_with_envs( runtime: &Runtime, command_path: &<Runtime as HasFilePathType>::FilePath, args: &[&str], envs: &[(&str, &str)], ) -> Result<ExecOutput, <Runtime as HasErrorType>::Error>
Source§impl<Component, Runtime> ConcurrentTaskRunner<Runtime> for Componentwhere
    Runtime: HasStreamType,
    Component: DelegateComponent<ConcurrentTaskRunnerComponent>,
    <Component as DelegateComponent<ConcurrentTaskRunnerComponent>>::Delegate: ConcurrentTaskRunner<Runtime>,
 
impl<Component, Runtime> ConcurrentTaskRunner<Runtime> for Componentwhere
    Runtime: HasStreamType,
    Component: DelegateComponent<ConcurrentTaskRunnerComponent>,
    <Component as DelegateComponent<ConcurrentTaskRunnerComponent>>::Delegate: ConcurrentTaskRunner<Runtime>,
async fn run_concurrent_tasks<T>(runtime: &Runtime, tasks: Vec<T>)where
    T: Task,
async fn run_concurrent_task_stream<T>(
    runtime: &Runtime,
    tasks: <Runtime as HasStreamType>::Stream<T>,
)where
    T: Task,
Source§impl<Component, Runtime> DirCreator<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<DirCreatorComponent>,
    <Component as DelegateComponent<DirCreatorComponent>>::Delegate: DirCreator<Runtime>,
 
impl<Component, Runtime> DirCreator<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<DirCreatorComponent>,
    <Component as DelegateComponent<DirCreatorComponent>>::Delegate: DirCreator<Runtime>,
async fn create_dir( runtime: &Runtime, dir_path: &<Runtime as HasFilePathType>::FilePath, ) -> Result<(), <Runtime as HasErrorType>::Error>
Source§impl<Component, Runtime> FileAsStringReader<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<FileAsStringReaderComponent>,
    <Component as DelegateComponent<FileAsStringReaderComponent>>::Delegate: FileAsStringReader<Runtime>,
 
impl<Component, Runtime> FileAsStringReader<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<FileAsStringReaderComponent>,
    <Component as DelegateComponent<FileAsStringReaderComponent>>::Delegate: FileAsStringReader<Runtime>,
async fn read_file_as_string( runtime: &Runtime, file_path: &<Runtime as HasFilePathType>::FilePath, ) -> Result<String, <Runtime as HasErrorType>::Error>
Source§impl<Component, Runtime> FileCopier<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<FileCopierComponent>,
    <Component as DelegateComponent<FileCopierComponent>>::Delegate: FileCopier<Runtime>,
 
impl<Component, Runtime> FileCopier<Runtime> for Componentwhere
    Runtime: HasFilePathType + HasErrorType,
    Component: DelegateComponent<FileCopierComponent>,
    <Component as DelegateComponent<FileCopierComponent>>::Delegate: FileCopier<Runtime>,
async fn copy_file( runtime: &Runtime, source_path: &<Runtime as HasFilePathType>::FilePath, destination_path: &<Runtime as HasFilePathType>::FilePath, ) -> Result<(), <Runtime as HasErrorType>::Error>
Source§impl<Runtime, Component, Delegate> OneShotChannelTypeProvider<Runtime> for Componentwhere
    Component: DelegateComponent<ChannelOnceTypeComponent, Delegate = Delegate>,
    Delegate: OneShotChannelTypeProvider<Runtime>,
 
impl<Runtime, Component, Delegate> OneShotChannelTypeProvider<Runtime> for Componentwhere
    Component: DelegateComponent<ChannelOnceTypeComponent, Delegate = Delegate>,
    Delegate: OneShotChannelTypeProvider<Runtime>,
fn from_oneshot_sender<T>(
    sender: Sender<T>,
) -> <Component as ProvideChannelOnceType<Runtime>>::SenderOnce<T>where
    T: Async,
fn from_oneshot_receiver<T>(
    receiver: Receiver<T>,
) -> <Component as ProvideChannelOnceType<Runtime>>::ReceiverOnce<T>where
    T: Async,
fn to_oneshot_sender<T>(
    sender: <Component as ProvideChannelOnceType<Runtime>>::SenderOnce<T>,
) -> Sender<T>where
    T: Async,
fn to_oneshot_receiver<T>(
    receiver: <Component as ProvideChannelOnceType<Runtime>>::ReceiverOnce<T>,
) -> Receiver<T>where
    T: Async,
Source§impl<Component, Runtime> ProvideChannelOnceType<Runtime> for Componentwhere
    Component: DelegateComponent<ChannelOnceTypeComponent>,
    <Component as DelegateComponent<ChannelOnceTypeComponent>>::Delegate: ProvideChannelOnceType<Runtime>,
 
impl<Component, Runtime> ProvideChannelOnceType<Runtime> for Componentwhere
    Component: DelegateComponent<ChannelOnceTypeComponent>,
    <Component as DelegateComponent<ChannelOnceTypeComponent>>::Delegate: ProvideChannelOnceType<Runtime>,
type SenderOnce<T: Async> = <<Component as DelegateComponent<ChannelOnceTypeComponent>>::Delegate as ProvideChannelOnceType<Runtime>>::SenderOnce<T>
type ReceiverOnce<T: Async> = <<Component as DelegateComponent<ChannelOnceTypeComponent>>::Delegate as ProvideChannelOnceType<Runtime>>::ReceiverOnce<T>
Source§impl<Component, Runtime> ProvideChannelType<Runtime> for Componentwhere
    Runtime: Async,
    Component: DelegateComponent<ChannelTypeComponent>,
    <Component as DelegateComponent<ChannelTypeComponent>>::Delegate: ProvideChannelType<Runtime>,
 
impl<Component, Runtime> ProvideChannelType<Runtime> for Componentwhere
    Runtime: Async,
    Component: DelegateComponent<ChannelTypeComponent>,
    <Component as DelegateComponent<ChannelTypeComponent>>::Delegate: ProvideChannelType<Runtime>,
Source§type Sender<T: Async> = <<Component as DelegateComponent<ChannelTypeComponent>>::Delegate as ProvideChannelType<Runtime>>::Sender<T>
 
type Sender<T: Async> = <<Component as DelegateComponent<ChannelTypeComponent>>::Delegate as ProvideChannelType<Runtime>>::Sender<T>
The sender end of a channel with payload type T.
Source§type Receiver<T: Async> = <<Component as DelegateComponent<ChannelTypeComponent>>::Delegate as ProvideChannelType<Runtime>>::Receiver<T>
 
type Receiver<T: Async> = <<Component as DelegateComponent<ChannelTypeComponent>>::Delegate as ProvideChannelType<Runtime>>::Receiver<T>
The receiver end of a channel with payload type T.