pub enum StaleSocketPolicy {
Preserve,
UnlinkSocketOnly,
UnlinkAnyPath,
}Expand description
Explicit stale pathname behavior for filesystem socket binds.
Variants§
Preserve
Preserve any existing path and let bind report the conflict.
UnlinkSocketOnly
Unlink only if the existing path is itself a socket.
UnlinkAnyPath
Unlink any existing filesystem path.
This may delete non-socket files and should only be used when the caller owns the path namespace.
Trait Implementations§
Source§impl Clone for StaleSocketPolicy
impl Clone for StaleSocketPolicy
Source§fn clone(&self) -> StaleSocketPolicy
fn clone(&self) -> StaleSocketPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StaleSocketPolicy
Source§impl Debug for StaleSocketPolicy
impl Debug for StaleSocketPolicy
Source§impl Default for StaleSocketPolicy
impl Default for StaleSocketPolicy
Source§fn default() -> StaleSocketPolicy
fn default() -> StaleSocketPolicy
Returns the “default value” for a type. Read more
impl Eq for StaleSocketPolicy
Source§impl PartialEq for StaleSocketPolicy
impl PartialEq for StaleSocketPolicy
Source§fn eq(&self, other: &StaleSocketPolicy) -> bool
fn eq(&self, other: &StaleSocketPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StaleSocketPolicy
Auto Trait Implementations§
impl Freeze for StaleSocketPolicy
impl RefUnwindSafe for StaleSocketPolicy
impl Send for StaleSocketPolicy
impl Sync for StaleSocketPolicy
impl Unpin for StaleSocketPolicy
impl UnsafeUnpin for StaleSocketPolicy
impl UnwindSafe for StaleSocketPolicy
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