pub struct ServeConfig {
pub root: PathBuf,
pub port: u16,
pub expose: Exposure,
pub open: bool,
pub idle_timeout: Option<Duration>,
}Expand description
Configuration for a wipe serve invocation.
Fields§
§root: PathBufProject root to serve (the directory containing .wipe).
port: u16TCP port to bind.
expose: ExposureHow the daemon is exposed beyond localhost.
open: boolWhether to open a browser once bound (best-effort; currently a hint).
idle_timeout: Option<Duration>If set, the daemon shuts itself down after this long with no connected UI clients - so auto-served daemons leave no overhead once the tab is closed.
Trait Implementations§
Source§impl Clone for ServeConfig
impl Clone for ServeConfig
Source§fn clone(&self) -> ServeConfig
fn clone(&self) -> ServeConfig
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 moreAuto Trait Implementations§
impl Freeze for ServeConfig
impl RefUnwindSafe for ServeConfig
impl Send for ServeConfig
impl Sync for ServeConfig
impl Unpin for ServeConfig
impl UnsafeUnpin for ServeConfig
impl UnwindSafe 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