pub enum Endpoint {
Address(String),
Command(Vec<String>),
}Expand description
How a direct stream is obtained.
Two ways of arriving at the same thing, which is why this is not two paths.
Variants§
Address(String)
A worker that was already standing: "node3:7000".
Command(Vec<String>)
A worker to be started here, as a child, and spoken to over its pipes:
["python", "-m", "somatize.worker"].
A whole argv and not a path because whoever stands a worker up decides
what it is called, what environment it needs, and whether it goes inside
an srun.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Endpoint
impl<'de> Deserialize<'de> for Endpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Endpoint
impl Ord for Endpoint
Source§impl PartialOrd for Endpoint
impl PartialOrd for Endpoint
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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