Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/connection_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::{
use async_rs::{Runtime, traits::*};
use std::io;

#[derive(Debug)]
pub struct ConnectionBuilder<RK: RuntimeKit + Send + Sync + Clone + 'static> {
runtime: Runtime<RK>,
uri: UriBuilder,
Expand All @@ -14,7 +15,7 @@ pub struct ConnectionBuilder<RK: RuntimeKit + Send + Sync + Clone + 'static> {
}
pub type DefaultConnectionBuilder = ConnectionBuilder<runtime::DefaultRuntimeKit>;

#[derive(Clone, Default)]
#[derive(Debug, Clone, Default)]
enum UriBuilder {
Str(String),
Uri(AMQPUri),
Expand Down
12 changes: 12 additions & 0 deletions src/connection_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::{
types::{AMQPValue, FieldTable, LongString, ShortString},
};
use backon::ExponentialBuilder;
use std::fmt;
use std::sync::Arc;

#[derive(Clone)]
Expand Down Expand Up @@ -69,3 +70,14 @@ impl ConnectionProperties {
self
}
}

impl fmt::Debug for ConnectionProperties {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("ConnectionProperties")
.field("locale", &self.locale)
.field("client_properties", &self.client_properties)
.field("backoff", &self.backoff)
.field("auto_recover", &self.auto_recover)
.finish()
}
}
Loading