pub struct AppBuilder { /* private fields */ }Implementations§
Source§impl AppBuilder
impl AppBuilder
pub fn new() -> AppBuilder
pub fn backend<I, S>(self, service: &str, urls: I) -> AppBuilder
pub fn policy(self, name: &str, policy: Policy) -> AppBuilder
pub fn default_policy(self, policy: Policy) -> AppBuilder
pub fn request_timeout(self, d: Duration) -> AppBuilder
pub fn connect_timeout(self, d: Duration) -> AppBuilder
pub fn pool_idle_timeout(self, d: Duration) -> AppBuilder
pub fn map_body_limit(self, bytes: usize) -> AppBuilder
pub fn state<T>(self, val: T) -> AppBuilder
pub fn mount(self, routes: Routes) -> AppBuilder
pub fn build(self) -> Result<App, String>
Auto Trait Implementations§
impl Freeze for AppBuilder
impl !RefUnwindSafe for AppBuilder
impl Send for AppBuilder
impl Sync for AppBuilder
impl Unpin for AppBuilder
impl UnsafeUnpin for AppBuilder
impl !UnwindSafe for AppBuilder
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