pub struct Notify<T>(/* private fields */);Available on crate feature
systemd only.Expand description
A systemd notification wrapper.
Notify wraps another acceptor configuration and augments it with
systemd service notifications.
When the server starts, it sends a readiness notification to systemd. If a watchdog interval is configured, it also starts a background task that periodically sends watchdog keepalive notifications for as long as the acceptor remains alive.
Aside from systemd integration, this type does not alter connection handling and simply delegates to the wrapped acceptor.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Notify<T>
impl<T: Eq> Eq for Notify<T>
Source§impl<I, S, T> IntoAccept<I, S> for Notify<T>where
T: IntoAccept<I, S>,
impl<I, S, T> IntoAccept<I, S> for Notify<T>where
T: IntoAccept<I, S>,
Source§type Accept = NotifyAcceptor<<T as IntoAccept<I, S>>::Accept>
type Accept = NotifyAcceptor<<T as IntoAccept<I, S>>::Accept>
The acceptor produced by this conversion.
Source§type Future = NotifyFuture<<T as IntoAccept<I, S>>::Future>
type Future = NotifyFuture<<T as IntoAccept<I, S>>::Future>
The future returned by
into_accept.Source§fn into_accept(self) -> Self::Future
fn into_accept(self) -> Self::Future
Converts this value into an
Accept implementation.Source§impl<T: Ord> Ord for Notify<T>
impl<T: Ord> Ord for Notify<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for Notify<T>
impl<T: PartialOrd> PartialOrd for Notify<T>
impl<T: PartialEq> StructuralPartialEq for Notify<T>
Auto Trait Implementations§
impl<T> Freeze for Notify<T>where
T: Freeze,
impl<T> RefUnwindSafe for Notify<T>where
T: RefUnwindSafe,
impl<T> Send for Notify<T>where
T: Send,
impl<T> Sync for Notify<T>where
T: Sync,
impl<T> Unpin for Notify<T>where
T: Unpin,
impl<T> UnsafeUnpin for Notify<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Notify<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.