Struct faucet_server::server::FaucetServerConfig
source · 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 qmd: Option<&'static Path>,
}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>§qmd: Option<&'static Path>Implementations§
source§impl FaucetServerConfig
impl FaucetServerConfig
pub async fn run(self) -> FaucetResult<()>
pub async fn extract_service( self, prefix: &str, ) -> FaucetResult<FaucetServerService>
Trait Implementations§
source§impl Clone for FaucetServerConfig
impl Clone for FaucetServerConfig
source§fn clone(&self) -> FaucetServerConfig
fn clone(&self) -> FaucetServerConfig
Returns a copy 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 moreimpl Copy for FaucetServerConfig
Auto 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)