pub struct LocalEndpoint<P: Protocol> { /* private fields */ }
Expand description
The endpoint of UNIX domain socket.
Implementations§
Source§impl<P: Protocol> LocalEndpoint<P>
impl<P: Protocol> LocalEndpoint<P>
Sourcepub fn new<T>(path_name: T) -> Result<LocalEndpoint<P>>
pub fn new<T>(path_name: T) -> Result<LocalEndpoint<P>>
Returns a LocalEndpoint
.
§Example
use asyncio::local::LocalStreamEndpoint;
assert!(LocalStreamEndpoint::new("file name").is_ok());
assert!(LocalStreamEndpoint::new("file name very long ").is_err());
Trait Implementations§
Source§impl<P: Clone + Protocol> Clone for LocalEndpoint<P>
impl<P: Clone + Protocol> Clone for LocalEndpoint<P>
Source§fn clone(&self) -> LocalEndpoint<P>
fn clone(&self) -> LocalEndpoint<P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LocalEndpoint<LocalDgram>
impl Debug for LocalEndpoint<LocalDgram>
Source§impl Debug for LocalEndpoint<LocalSeqPacket>
impl Debug for LocalEndpoint<LocalSeqPacket>
Source§impl Debug for LocalEndpoint<LocalStream>
impl Debug for LocalEndpoint<LocalStream>
Source§impl<P: Protocol> Display for LocalEndpoint<P>
impl<P: Protocol> Display for LocalEndpoint<P>
Source§impl Endpoint<LocalDgram> for LocalEndpoint<LocalDgram>
impl Endpoint<LocalDgram> for LocalEndpoint<LocalDgram>
fn protocol(&self) -> LocalDgram
Source§impl Endpoint<LocalSeqPacket> for LocalEndpoint<LocalSeqPacket>
impl Endpoint<LocalSeqPacket> for LocalEndpoint<LocalSeqPacket>
fn protocol(&self) -> LocalSeqPacket
Source§impl Endpoint<LocalStream> for LocalEndpoint<LocalStream>
impl Endpoint<LocalStream> for LocalEndpoint<LocalStream>
fn protocol(&self) -> LocalStream
Source§impl<P: Ord + Protocol> Ord for LocalEndpoint<P>
impl<P: Ord + Protocol> Ord for LocalEndpoint<P>
Source§fn cmp(&self, other: &LocalEndpoint<P>) -> Ordering
fn cmp(&self, other: &LocalEndpoint<P>) -> Ordering
1.21.0 · 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
Source§impl<P: PartialOrd + Protocol> PartialOrd for LocalEndpoint<P>
impl<P: PartialOrd + Protocol> PartialOrd for LocalEndpoint<P>
Source§impl<P: Protocol> SockAddr for LocalEndpoint<P>
impl<P: Protocol> SockAddr for LocalEndpoint<P>
impl<P: Eq + Protocol> Eq for LocalEndpoint<P>
impl<P: Protocol> StructuralPartialEq for LocalEndpoint<P>
Auto Trait Implementations§
impl<P> Freeze for LocalEndpoint<P>
impl<P> RefUnwindSafe for LocalEndpoint<P>where
P: RefUnwindSafe,
impl<P> Send for LocalEndpoint<P>
impl<P> Sync for LocalEndpoint<P>where
P: Sync,
impl<P> Unpin for LocalEndpoint<P>where
P: Unpin,
impl<P> UnwindSafe for LocalEndpoint<P>where
P: UnwindSafe,
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