pub struct AppBuilder { /* private fields */ }Implementations§
Source§impl AppBuilder
impl AppBuilder
pub fn new() -> Self
pub fn backend<I, S>(self, service: &str, urls: I) -> Self
pub fn policy(self, name: &str, policy: Policy) -> Self
pub fn default_policy(self, policy: Policy) -> Self
pub fn request_timeout(self, d: Duration) -> Self
pub fn connect_timeout(self, d: Duration) -> Self
pub fn pool_idle_timeout(self, d: Duration) -> Self
pub fn map_body_limit(self, bytes: usize) -> Self
pub fn state<T: Clone + Send + Sync + 'static>(self, val: T) -> Self
pub fn mount(self, routes: Routes) -> Self
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