pub enum ChildSpec {
Stdio {
name: String,
argv: Vec<String>,
},
Ws {
name: String,
url: String,
},
}Expand description
A child service: an activation in another process, mounted under name.
Spelled NAME=stdio:CMD ARGS… (the command split as a shell would split
it, then run without one) or NAME=ws://HOST:PORT[/PATH] (wss:// with
the child-wss feature). NAME is one segment of [A-Za-z0-9_-] — the
mount name, which wins over the namespace the child declares.
Variants§
Stdio
A process the service spawns; frames on its stdin / stdout (spec/11).
Ws
A service the service dials; frames on a WebSocket (spec/00, 01).
Implementations§
Trait Implementations§
impl Eq for ChildSpec
impl StructuralPartialEq for ChildSpec
Auto Trait Implementations§
impl Forget for ChildSpec
impl Freeze for ChildSpec
impl Move for ChildSpec
impl RefUnwindSafe for ChildSpec
impl Send for ChildSpec
impl Sync for ChildSpec
impl Unpin for ChildSpec
impl UnsafeUnpin for ChildSpec
impl UnwindSafe for ChildSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.