Struct faucet_server::server::FaucetServer
source · pub struct FaucetServer { /* private fields */ }Implementations§
source§impl FaucetServer
impl FaucetServer
pub fn new() -> Self
pub fn strategy(self, strategy: 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 async fn run(self) -> FaucetResult<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FaucetServer
impl Send for FaucetServer
impl Sync for FaucetServer
impl Unpin for FaucetServer
impl UnwindSafe for FaucetServer
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