pub struct FaucetServerConfig {
pub strategy: Strategy,
pub bind: Option<SocketAddr>,
pub n_workers: NonZeroUsize,
pub server_type: WorkerType,
pub workdir: &'static Path,
pub extractor: IpExtractor,
pub rscript: &'static OsStr,
pub quarto: &'static OsStr,
pub app_dir: Option<&'static str>,
pub route: Option<&'static str>,
pub qmd: Option<&'static Path>,
pub max_rps: Option<f64>,
}Fields§
§strategy: Strategy§bind: Option<SocketAddr>§n_workers: NonZeroUsize§server_type: WorkerType§workdir: &'static Path§extractor: IpExtractor§rscript: &'static OsStr§quarto: &'static OsStr§app_dir: Option<&'static str>§route: Option<&'static str>§qmd: Option<&'static Path>§max_rps: Option<f64>Implementations§
Source§impl FaucetServerConfig
impl FaucetServerConfig
pub async fn run( self, shutdown: &'static ShutdownSignal, websocket_config: &'static WebSocketConfig, ) -> FaucetResult<()>
pub async fn extract_service( self, shutdown: &'static ShutdownSignal, websocket_config: &'static WebSocketConfig, ) -> FaucetResult<(FaucetServerService, WorkerConfigs)>
Trait Implementations§
Source§impl Clone for FaucetServerConfig
impl Clone for FaucetServerConfig
Source§fn clone(&self) -> FaucetServerConfig
fn clone(&self) -> FaucetServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FaucetServerConfig
impl RefUnwindSafe for FaucetServerConfig
impl Send for FaucetServerConfig
impl Sync for FaucetServerConfig
impl Unpin for FaucetServerConfig
impl UnwindSafe for FaucetServerConfig
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