pub struct HttpBackendBuilder<B: BackendKindBuilder = HttpBackendKindBuilder> {
pub plugins: Vec<BoxLayer>,
pub extensions: Extensions,
/* private fields */
}Fields§
§plugins: Vec<BoxLayer>§extensions: ExtensionsImplementations§
Source§impl<B: BackendKindBuilder> HttpBackendBuilder<B>
impl<B: BackendKindBuilder> HttpBackendBuilder<B>
pub fn new() -> Self
pub fn plugin(self, plugin: BoxLayer) -> Self
pub fn plugins(self, plugins: impl IntoIterator<Item = BoxLayer>) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn weight(self, weight: u16) -> Self
pub fn http(self) -> HttpBackendBuilder<HttpBackendKindBuilder>
pub fn file(self) -> HttpBackendBuilder<FileBackendKindBuilder>
pub fn ext(self, extension: Extensions) -> Self
pub fn build(self) -> HttpBackend
Trait Implementations§
Source§impl<B: Debug + BackendKindBuilder> Debug for HttpBackendBuilder<B>
impl<B: Debug + BackendKindBuilder> Debug for HttpBackendBuilder<B>
Source§impl<B: BackendKindBuilder> Default for HttpBackendBuilder<B>
impl<B: BackendKindBuilder> Default for HttpBackendBuilder<B>
Auto Trait Implementations§
impl<B> Freeze for HttpBackendBuilder<B>where
B: Freeze,
impl<B = HttpBackendKindBuilder> !RefUnwindSafe for HttpBackendBuilder<B>
impl<B> Send for HttpBackendBuilder<B>where
B: Send,
impl<B> Sync for HttpBackendBuilder<B>where
B: Sync,
impl<B> Unpin for HttpBackendBuilder<B>where
B: Unpin,
impl<B = HttpBackendKindBuilder> !UnwindSafe for HttpBackendBuilder<B>
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