pub enum SessionPlacement {
Named(Placement),
Fake,
}Expand description
Where a session of this client runs: the placement the machine resolved, or
the in-process fake runtime.
Placement is a property of the machine and comes from the workspace
config.toml or from ONLYNE_BACKEND; a drive is a property of the runtime
and comes from the role’s spec. fake is the backend that owns no process
and needs no external tool, which is how the scenario suite and every e2e
case run a real client on a machine with no terminal host at all. Only the
environment and an embedding that resolved the placement itself can name it:
a workspace config names a placement, and a runtime that starts nothing is
not one an operator should reach by typo.
Variants§
Implementations§
Source§impl SessionPlacement
impl SessionPlacement
Sourcepub fn parse(name: &str) -> Option<Self>
pub fn parse(name: &str) -> Option<Self>
Two pre-split spellings are accepted here and nowhere else: fake
selects the in-process test runtime, and exec is the name a v1
ONLYNE_BACKEND used for a session the client runs in the background,
which is the headless placement. A workspace config names neither: its
key is placement, and the five names that key accepts are the ones
onlyne_config::PLACEMENT_NAMES lists.
pub fn as_str(self) -> &'static str
Trait Implementations§
Source§impl Clone for SessionPlacement
impl Clone for SessionPlacement
impl Copy for SessionPlacement
Source§impl Debug for SessionPlacement
impl Debug for SessionPlacement
Source§impl Display for SessionPlacement
impl Display for SessionPlacement
impl Eq for SessionPlacement
Source§impl PartialEq for SessionPlacement
impl PartialEq for SessionPlacement
impl StructuralPartialEq for SessionPlacement
Auto Trait Implementations§
impl Freeze for SessionPlacement
impl RefUnwindSafe for SessionPlacement
impl Send for SessionPlacement
impl Sync for SessionPlacement
impl Unpin for SessionPlacement
impl UnsafeUnpin for SessionPlacement
impl UnwindSafe for SessionPlacement
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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
key and return true if they are equal.