pub struct RoutingBuilder { /* private fields */ }Expand description
Builder for Routing.
Implementations§
Source§impl RoutingBuilder
impl RoutingBuilder
Sourcepub fn description(self, description: impl Into<SmartStr>) -> Self
pub fn description(self, description: impl Into<SmartStr>) -> Self
Sets the description.
Sourcepub fn connection_label(self, label: impl Into<SmartStr>) -> Self
pub fn connection_label(self, label: impl Into<SmartStr>) -> Self
Sets the connection label.
Sourcepub fn connection_required(self, required: bool) -> Self
pub fn connection_required(self, required: bool) -> Self
Sets whether a connection is required.
Sourcepub fn max_connections(self, max: usize) -> Self
pub fn max_connections(self, max: usize) -> Self
Sets the maximum number of connections.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoutingBuilder
impl !RefUnwindSafe for RoutingBuilder
impl Send for RoutingBuilder
impl Sync for RoutingBuilder
impl Unpin for RoutingBuilder
impl !UnwindSafe for RoutingBuilder
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