pub struct RtcServe {
pub watch: Arc<RtcWatch>,
pub address: IpAddr,
pub port: u16,
pub open: bool,
pub proxy_backend: Option<Uri>,
pub proxy_rewrite: Option<String>,
pub proxy_ws: bool,
pub proxy_insecure: bool,
pub proxies: Option<Vec<ConfigOptsProxy>>,
pub no_autoreload: bool,
}Expand description
Runtime config for the serve system.
Fields§
§watch: Arc<RtcWatch>Runtime config for the watch system.
address: IpAddrThe IP address to serve on.
port: u16The port to serve on.
open: boolOpen a browser tab once the initial build is complete.
proxy_backend: Option<Uri>A URL to which requests will be proxied.
proxy_rewrite: Option<String>The URI on which to accept requests which are to be rewritten and proxied to backend.
proxy_ws: boolConfigure the proxy for handling WebSockets.
proxy_insecure: boolConfigure the proxy to accept insecure connections.
proxies: Option<Vec<ConfigOptsProxy>>Any proxies configured to run along with the server.
no_autoreload: boolWhether to disable auto-reload of the web page when a build completes.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RtcServe
impl RefUnwindSafe for RtcServe
impl Send for RtcServe
impl Sync for RtcServe
impl Unpin for RtcServe
impl UnwindSafe for RtcServe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more