pub struct ObservedEcho { /* private fields */ }Expand description
One blocking echo worker, stopped by a datagram signal and joined by its owner.
Implementations§
Source§impl ObservedEcho
impl ObservedEcho
Sourcepub fn bind(address: SocketAddr, counters: Arc<BrokerCounters>) -> Result<Self>
pub fn bind(address: SocketAddr, counters: Arc<BrokerCounters>) -> Result<Self>
Binds before starting the sole blocking worker; no refresh or idle timer.
§Errors
The socket could not bind or clone, or the worker could not start.
Sourcepub const fn local_addr(&self) -> SocketAddr
pub const fn local_addr(&self) -> SocketAddr
The address actually bound, including an allocated ephemeral test port.
Trait Implementations§
Source§impl Debug for ObservedEcho
impl Debug for ObservedEcho
Source§impl Drop for ObservedEcho
impl Drop for ObservedEcho
Auto Trait Implementations§
impl !RefUnwindSafe for ObservedEcho
impl !UnwindSafe for ObservedEcho
impl Freeze for ObservedEcho
impl Send for ObservedEcho
impl Sync for ObservedEcho
impl Unpin for ObservedEcho
impl UnsafeUnpin for ObservedEcho
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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