pub struct EnvironmentBuilder(/* private fields */);
Expand description
Builder for Environment
Implementations§
Source§impl EnvironmentBuilder
impl EnvironmentBuilder
pub async fn build(self) -> RabbitMQStreamResult<Environment>
pub fn host(self, host: &str) -> EnvironmentBuilder
pub fn username(self, username: &str) -> EnvironmentBuilder
pub fn password(self, password: &str) -> EnvironmentBuilder
pub fn virtual_host(self, virtual_host: &str) -> EnvironmentBuilder
pub fn port(self, port: u16) -> EnvironmentBuilder
pub fn tls(self, tls_configuration: TlsConfiguration) -> EnvironmentBuilder
pub fn heartbeat(self, heartbeat: u32) -> EnvironmentBuilder
pub fn metrics_collector( self, collector: impl MetricsCollector + 'static, ) -> EnvironmentBuilder
pub fn load_balancer_mode(self, load_balancer_mode: bool) -> EnvironmentBuilder
pub fn client_provided_name(self, name: &str) -> EnvironmentBuilder
Auto Trait Implementations§
impl Freeze for EnvironmentBuilder
impl !RefUnwindSafe for EnvironmentBuilder
impl Send for EnvironmentBuilder
impl Sync for EnvironmentBuilder
impl Unpin for EnvironmentBuilder
impl !UnwindSafe for EnvironmentBuilder
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