pub struct ServeOptions {
pub addr: SocketAddr,
pub security: SecurityConfig,
}Expand description
Listen options for ResumaApp::serve.
Default and Self::from_env read RESUMA_ADDR or HOST + PORT
(defaults to 127.0.0.1:3000). Security settings come from SecurityConfig::from_env.
Fields§
§addr: SocketAddr§security: SecurityConfigImplementations§
Source§impl ServeOptions
impl ServeOptions
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Read bind address from RESUMA_ADDR or HOST + PORT (same as crate::FlowServeOptions).
Trait Implementations§
Source§impl Clone for ServeOptions
impl Clone for ServeOptions
Source§fn clone(&self) -> ServeOptions
fn clone(&self) -> ServeOptions
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 ServeOptions
impl Debug for ServeOptions
Auto Trait Implementations§
impl Freeze for ServeOptions
impl RefUnwindSafe for ServeOptions
impl Send for ServeOptions
impl Sync for ServeOptions
impl Unpin for ServeOptions
impl UnsafeUnpin for ServeOptions
impl UnwindSafe for ServeOptions
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