Trait lunatic_twitchax_patch::function::process::IntoProcess
source · pub trait IntoProcess<M, S> {
type Process;
// Required method
fn spawn<C>(
capture: C,
entry: fn(_: C, _: Self),
name: Option<&str>,
link: Option<Tag>,
config: Option<&ProcessConfig>,
node: Option<u64>
) -> Result<Self::Process, LunaticError>
where S: CanSerialize<C> + CanSerialize<ProtocolCapture<C>>;
}Expand description
Decides what can be turned into a process.
It’s only implemented for two types: Mailbox & Protocol.
Required Associated Types§
Required Methods§
fn spawn<C>( capture: C, entry: fn(_: C, _: Self), name: Option<&str>, link: Option<Tag>, config: Option<&ProcessConfig>, node: Option<u64> ) -> Result<Self::Process, LunaticError>
Object Safety§
This trait is not object safe.