pub struct TCPClientConfig {
pub host: String,
pub port: u16,
pub reconnect: bool,
pub reconnect_delay: f32,
pub propagate_to_rabbitmq: bool,
}Expand description
Configuration options for the TCP client.
Fields§
§host: StringHostname or IP address of the TCP server.
port: u16Port number of the TCP server.
reconnect: boolWhether the client should attempt to reconnect on disconnection.
reconnect_delay: f32Delay in seconds before attempting to reconnect.
propagate_to_rabbitmq: boolPropagate parsed message to the RabbitMQ exchange.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TCPClientConfig
impl RefUnwindSafe for TCPClientConfig
impl Send for TCPClientConfig
impl Sync for TCPClientConfig
impl Unpin for TCPClientConfig
impl UnwindSafe for TCPClientConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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