Struct ntex_amqp::client::Connector [−][src]
pub struct Connector<A, T> { /* fields omitted */ }
Expand description
Amqp client connector
Implementations
The channel-max value is the highest channel number that may be used on the Connection. This value plus one is the maximum number of Sessions that can be simultaneously active on the Connection.
By default channel max value is set to 1024
Set max frame size for the connection.
By default max size is set to 64kb
Get max frame size for the connection.
Set idle time-out for the connection.
By default idle time-out is set to 120 seconds
Set connection hostname
Hostname is not set by default
Set handshake timeout.
Handshake includes connect
packet and response connect-ack
.
By default handshake timeuot is disabled.
Set client connection disconnect timeout.
Defines a timeout for disconnect connection. If a disconnect procedure does not complete within this time, the connection get dropped.
To disable timeout set value to 0.
By default disconnect timeout is set to 3 seconds.
pub fn buffer_params(
self,
max_read_buf_size: u16,
max_write_buf_size: u16,
min_buf_size: u16
) -> Self
pub fn buffer_params(
self,
max_read_buf_size: u16,
max_write_buf_size: u16,
min_buf_size: u16
) -> Self
Set read/write buffer params
By default read buffer is 8kb, write buffer is 8kb
Use custom connector
Connect to amqp server
Negotiate amqp protocol over opened socket
pub fn connect_sasl(
&self,
addr: A,
auth: SaslAuth
) -> impl Future<Output = Result<Client<T::Response>, ConnectError>>
pub fn connect_sasl(
&self,
addr: A,
auth: SaslAuth
) -> impl Future<Output = Result<Client<T::Response>, ConnectError>>
Connect to amqp server
pub fn negotiate_sasl<Io>(
&self,
io: Io,
auth: SaslAuth
) -> impl Future<Output = Result<Client<Io>, ConnectError>> where
Io: AsyncRead + AsyncWrite + Unpin + 'static,
pub fn negotiate_sasl<Io>(
&self,
io: Io,
auth: SaslAuth
) -> impl Future<Output = Result<Client<Io>, ConnectError>> where
Io: AsyncRead + AsyncWrite + Unpin + 'static,
Negotiate amqp sasl protocol over opened socket
Auto Trait Implementations
impl<A, T> !RefUnwindSafe for Connector<A, T>
impl<A, T> !UnwindSafe for Connector<A, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more