pub struct Serving { /* private fields */ }Implementations§
Source§impl Serving
impl Serving
Sourcepub fn content_security<A: Area>(self, sources: ContentSecurity) -> Self
pub fn content_security<A: Area>(self, sources: ContentSecurity) -> Self
Replaces the area’s earlier sources; those given to content_security_all add to them.
pub fn content_security_all(self, sources: ContentSecurity) -> Self
Source§impl Serving
impl Serving
Sourcepub fn named(self, name: &'static str) -> Self
pub fn named(self, name: &'static str) -> Self
Names the app’s cookies, __Host-<name>-session (cookies do not separate by port), and
the AppName handlers take.
Sourcepub fn signing_keys(self, keys: SigningKeys) -> Self
pub fn signing_keys(self, keys: SigningKeys) -> Self
Without them, serving reads SOFIE_SIGNING_KEYS and refuses to start when it is missing.
Sourcepub fn max_connections(self, limit: NonZeroUsize) -> Self
pub fn max_connections(self, limit: NonZeroUsize) -> Self
Connections served at once, 4096 by default; keep it below ulimit -n.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Serving
impl !RefUnwindSafe for Serving
impl !UnwindSafe for Serving
impl Send for Serving
impl Sync for Serving
impl Unpin for Serving
impl UnsafeUnpin for Serving
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