pub struct ServerRunnerArgs {
pub external_layout: Option<PathBuf>,
pub session: SessionName,
}Expand description
Private muxr-server argument contract shared by the public CLI, client spawn path, and server runner.
Fields§
§external_layout: Option<PathBuf>Optional external layout file used only when creating a new session.
session: SessionNameSession name owned by the server runner.
Implementations§
Source§impl ServerRunnerArgs
impl ServerRunnerArgs
Sourcepub fn parse(args: &[OsString]) -> Result<Self>
pub fn parse(args: &[OsString]) -> Result<Self>
Parse the private server-runner argument contract used by the public muxr CLI.
§Errors
- The invocation is missing its session name, has extra args, or has an invalid session name.
Sourcepub fn argv(&self) -> Vec<OsString>
pub fn argv(&self) -> Vec<OsString>
Return argv for muxr-server; keep this symmetric with Self::parse.
Trait Implementations§
Source§impl Clone for ServerRunnerArgs
impl Clone for ServerRunnerArgs
Source§fn clone(&self) -> ServerRunnerArgs
fn clone(&self) -> ServerRunnerArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerRunnerArgs
impl Debug for ServerRunnerArgs
impl Eq for ServerRunnerArgs
Source§impl PartialEq for ServerRunnerArgs
impl PartialEq for ServerRunnerArgs
impl StructuralPartialEq for ServerRunnerArgs
Auto Trait Implementations§
impl Freeze for ServerRunnerArgs
impl RefUnwindSafe for ServerRunnerArgs
impl Send for ServerRunnerArgs
impl Sync for ServerRunnerArgs
impl Unpin for ServerRunnerArgs
impl UnsafeUnpin for ServerRunnerArgs
impl UnwindSafe for ServerRunnerArgs
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.