#[non_exhaustive]pub struct ServeOptions {
pub registry: Option<SessionRegistry>,
pub wire: WireSocket,
}Expand description
Optional knobs for serve_with_options.
Additive: existing serve / serve_with_registry keep their signatures
and behave as today (no wire socket → wire/1 refused).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.registry: Option<SessionRegistry>Live-session registry for periodic revalidation; None skips registration.
wire: WireSocketNode wire socket wire/1 splices onto; default (no path) refuses.
Trait Implementations§
Source§impl Clone for ServeOptions
impl Clone for ServeOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ServeOptions
impl !UnwindSafe for ServeOptions
impl Forget for ServeOptions
impl Freeze for ServeOptions
impl Move for ServeOptions
impl Send for ServeOptions
impl Sync for ServeOptions
impl Unpin for ServeOptions
impl UnsafeUnpin 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