pub struct ListenerGuard {
rm_guard: Option<UnlinkOnDrop>,
lock_guard: Option<LockFileGuard>,
}Available on crate feature
rpc-server only.Expand description
An object to control shutdown for a listener. We should drop it only when we’re no longer listening on the socket.
Fields§
§rm_guard: Option<UnlinkOnDrop>A handle to a file that should be deleted when this is dropped.
lock_guard: Option<LockFileGuard>A handle to a lockfile on disk.
Auto Trait Implementations§
impl Freeze for ListenerGuard
impl RefUnwindSafe for ListenerGuard
impl Send for ListenerGuard
impl Sync for ListenerGuard
impl Unpin for ListenerGuard
impl UnwindSafe for ListenerGuard
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more