pub struct HttpRouteRuleBuilder {
pub plugins: Vec<BoxLayer>,
pub extensions: Extensions,
pub balance_policy: BalancePolicyEnum,
/* private fields */
}Fields§
§plugins: Vec<BoxLayer>§extensions: Extensions§balance_policy: BalancePolicyEnumImplementations§
Source§impl HttpRouteRuleBuilder
impl HttpRouteRuleBuilder
pub fn new() -> Self
pub fn match_item(self, item: impl Into<HttpRouteMatch>) -> Self
pub fn matches(self, matches: impl IntoIterator<Item = HttpRouteMatch>) -> Self
pub fn match_all(self) -> 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 backend(self, backend: HttpBackend) -> Self
pub fn backends(self, backend: impl IntoIterator<Item = HttpBackend>) -> Self
pub fn balance_policy(self, policy: BalancePolicyEnum) -> Self
pub fn build(self) -> HttpRouteRule
pub fn ext(self, extension: Extensions) -> Self
Trait Implementations§
Source§impl Debug for HttpRouteRuleBuilder
impl Debug for HttpRouteRuleBuilder
Auto Trait Implementations§
impl Freeze for HttpRouteRuleBuilder
impl !RefUnwindSafe for HttpRouteRuleBuilder
impl Send for HttpRouteRuleBuilder
impl Sync for HttpRouteRuleBuilder
impl Unpin for HttpRouteRuleBuilder
impl !UnwindSafe for HttpRouteRuleBuilder
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