pub enum ServeMode {
Static {
root_dir: PathBuf,
},
Command {
cmd: String,
args: Vec<String>,
cwd: Option<PathBuf>,
},
}Expand description
Mode of operation for the web server.
Variants§
Static
Embedded static HTTP server serving a directory.
Command
External child process command (e.g. dx serve).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServeMode
impl RefUnwindSafe for ServeMode
impl Send for ServeMode
impl Sync for ServeMode
impl Unpin for ServeMode
impl UnsafeUnpin for ServeMode
impl UnwindSafe for ServeMode
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