pub struct LocalSocketAddress {
path: String,
abstract_name: bool,
}Expand description
Local socket address for inter-process communication (OS-agnostic, not tied to Unix specifically)
Fields§
§path: StringSocket path or name (may be empty for unnamed sockets)
abstract_name: boolWhether this is an abstract name (not filesystem-based)
Implementations§
Source§impl LocalSocketAddress
impl LocalSocketAddress
Sourcepub fn from_path(path: impl Into<String>) -> Result<Self, SocketError>
pub fn from_path(path: impl Into<String>) -> Result<Self, SocketError>
Create a local socket address from a path
Sourcepub fn from_abstract(name: impl Into<String>) -> Result<Self, SocketError>
pub fn from_abstract(name: impl Into<String>) -> Result<Self, SocketError>
Create an abstract local socket address (not filesystem-based)
Sourcepub fn is_unnamed(&self) -> bool
pub fn is_unnamed(&self) -> bool
Check if this is an unnamed socket
Sourcepub fn is_abstract(&self) -> bool
pub fn is_abstract(&self) -> bool
Check if this is an abstract name
Trait Implementations§
Source§impl Clone for LocalSocketAddress
impl Clone for LocalSocketAddress
Source§fn clone(&self) -> LocalSocketAddress
fn clone(&self) -> LocalSocketAddress
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalSocketAddress
impl Debug for LocalSocketAddress
Source§impl PartialEq for LocalSocketAddress
impl PartialEq for LocalSocketAddress
impl Eq for LocalSocketAddress
impl StructuralPartialEq for LocalSocketAddress
Auto Trait Implementations§
impl Freeze for LocalSocketAddress
impl RefUnwindSafe for LocalSocketAddress
impl Send for LocalSocketAddress
impl Sync for LocalSocketAddress
impl Unpin for LocalSocketAddress
impl UnwindSafe for LocalSocketAddress
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.