pub struct ServeConfig {
pub addr: String,
pub atelier_root: PathBuf,
pub dry_run: bool,
pub cookbook: Option<Arc<CookbookWebState>>,
}Expand description
Configuration for the shell server.
Fields§
§addr: StringThe address to bind, e.g. 127.0.0.1:8787.
atelier_root: PathBufDirectory containing generated Atelier cache files.
dry_run: boolReturn before binding the socket. Lets a caller confirm the serve verb dispatches without holding a port.
cookbook: Option<Arc<CookbookWebState>>Host-provided cookbook state. When absent, the standalone shell uses the
small fixture directory from sim-lib-cookbook.
Trait Implementations§
Source§impl Debug for ServeConfig
impl Debug for ServeConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ServeConfig
impl !UnwindSafe for ServeConfig
impl Freeze for ServeConfig
impl Send for ServeConfig
impl Sync for ServeConfig
impl Unpin for ServeConfig
impl UnsafeUnpin for ServeConfig
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