pub enum CliArgs {
Client(CliClientArgs),
Server(CliServerArgs),
}
Expand description
An enumeration representing the possible types of command line arguments.
This enum helps in differentiating between client and server command line arguments. It is a common practice in CLI applications to have different sets of arguments for different modes (client/server).
§Variants
Client(CliClientArgs)
: Command line arguments specific to the client.Server(CliServerArgs)
: Command line arguments specific to the server.
Variants§
Client(CliClientArgs)
Server(CliServerArgs)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CliArgs
impl RefUnwindSafe for CliArgs
impl Send for CliArgs
impl Sync for CliArgs
impl Unpin for CliArgs
impl UnwindSafe for CliArgs
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