pub struct FaucetServerBuilder { /* private fields */ }Implementations§
Source§impl FaucetServerBuilder
impl FaucetServerBuilder
pub fn new() -> Self
pub fn app_dir(self, app_dir: Option<impl AsRef<str>>) -> Self
pub fn strategy(self, strategy: Option<Strategy>) -> Self
pub fn bind(self, bind: SocketAddr) -> Self
pub fn extractor(self, extractor: IpExtractor) -> Self
pub fn workers(self, n: usize) -> Self
pub fn server_type(self, server_type: WorkerType) -> Self
pub fn workdir(self, workdir: impl AsRef<Path>) -> Self
pub fn rscript(self, rscript: impl AsRef<OsStr>) -> Self
pub fn quarto(self, quarto: impl AsRef<OsStr>) -> Self
pub fn qmd(self, qmd: Option<impl AsRef<Path>>) -> Self
pub fn route(self, route: String) -> Self
pub fn max_rps(self, max_rps: Option<f64>) -> Self
pub fn build(self) -> FaucetResult<FaucetServerConfig>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FaucetServerBuilder
impl RefUnwindSafe for FaucetServerBuilder
impl Send for FaucetServerBuilder
impl Sync for FaucetServerBuilder
impl Unpin for FaucetServerBuilder
impl UnwindSafe for FaucetServerBuilder
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