pub struct ServeConfig {
pub bind: SocketAddr,
pub root: PathBuf,
pub limits: Limits,
pub static_policy: StaticPolicy,
pub default_content_type: String,
pub extra_response_headers: Vec<(String, String)>,
}Fields§
§bind: SocketAddr§root: PathBuf§limits: Limits§static_policy: StaticPolicy§default_content_type: String§extra_response_headers: Vec<(String, String)>Implementations§
Source§impl ServeConfig
impl ServeConfig
Sourcepub fn startup_summary(&self) -> StartupSummary
pub fn startup_summary(&self) -> StartupSummary
Build a logging-friendly summary of this configuration.
The binary crate uses this to print a startup banner. Callers that
embed eggserve-core directly can use it for their own logging.
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 moreSource§impl Debug for ServeConfig
impl Debug for ServeConfig
Auto 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