pub struct HttpConfig {
pub port: Option<u16>,
pub args: Vec<String>,
pub fresh: Vec<String>,
pub pace_ms: Option<u64>,
}Expand description
http in rust/app-cases/rust-anything.json: the app is a server.
Fields§
§port: Option<u16>A port the original always listens on. When unset, every start gets a free port through
the PORT environment variable and {port} in the command.
args: Vec<String>Arguments every start gets after its command: the original’s and every build’s.
fresh: Vec<String>Repository paths copied (from the snapshot in http/files/) into a fresh working
directory before every start, so state the server writes never leaks between runs.
pace_ms: Option<u64>Milliseconds to wait after each response before the next request.
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Source§impl Debug for HttpConfig
impl Debug for HttpConfig
Source§impl Default for HttpConfig
impl Default for HttpConfig
Source§impl<'de> Deserialize<'de> for HttpConfig
impl<'de> Deserialize<'de> for HttpConfig
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
Auto Trait Implementations§
impl Forget for HttpConfig
impl Freeze for HttpConfig
impl Move for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnsafeUnpin for HttpConfig
impl UnwindSafe for HttpConfig
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