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 + Send + Sync + 'static ) -> EnvironmentBuilder
Auto Trait Implementations§
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