pub struct TcpService {
pub tag: String,
pub addr: SocketAddr,
pub timeout: Duration,
pub warm_up: Option<Duration>,
}Expand description
TCP service.
Fields§
§tag: StringA tag used as an identificator of the dependency in the output.
addr: SocketAddrService address.
timeout: DurationService wait timeout.
warm_up: Option<Duration>Optional wait time after a successful response from the TCP service.
Implementations§
Trait Implementations§
Source§impl Dependency for TcpService
impl Dependency for TcpService
Source§fn tag(&self) -> &str
fn tag(&self) -> &str
A tag used as an identificator in output when process runs as a part of a
ProcessPool.Auto Trait Implementations§
impl Freeze for TcpService
impl RefUnwindSafe for TcpService
impl Send for TcpService
impl Sync for TcpService
impl Unpin for TcpService
impl UnwindSafe for TcpService
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