Struct asyncio::local::LocalEndpoint
[−]
[src]
pub struct LocalEndpoint<P: Protocol> { /* fields omitted */ }
The endpoint of UNIX domain socket.
Methods
impl<P: Protocol> LocalEndpoint<P>
[src]
fn new<T>(path_name: T) -> Result<LocalEndpoint<P>> where T: AsRef<str>
Returns a LocalEndpoint
.
Example
use asyncio::local::LocalStreamEndpoint; assert!(LocalStreamEndpoint::new("file name").is_ok()); assert!(LocalStreamEndpoint::new("file name very long ").is_err());
fn path(&self) -> &str
Returns a path_name associated with the endpoint.
Example
use asyncio::local::LocalStreamEndpoint; let ep = LocalStreamEndpoint::new("foo.sock").unwrap(); assert_eq!(ep.path(), "foo.sock");
Trait Implementations
impl Endpoint<LocalDgram> for LocalEndpoint<LocalDgram>
[src]
fn protocol(&self) -> LocalDgram
impl Debug for LocalEndpoint<LocalDgram>
[src]
impl Endpoint<LocalStream> for LocalEndpoint<LocalStream>
[src]
fn protocol(&self) -> LocalStream
impl Debug for LocalEndpoint<LocalStream>
[src]
impl Endpoint<LocalSeqPacket> for LocalEndpoint<LocalSeqPacket>
[src]
fn protocol(&self) -> LocalSeqPacket
impl Debug for LocalEndpoint<LocalSeqPacket>
[src]
impl<P: Clone + Protocol> Clone for LocalEndpoint<P>
[src]
fn clone(&self) -> LocalEndpoint<P>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<P: Eq + Protocol> Eq for LocalEndpoint<P>
[src]
impl<P: PartialEq + Protocol> PartialEq for LocalEndpoint<P>
[src]
fn eq(&self, __arg_0: &LocalEndpoint<P>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LocalEndpoint<P>) -> bool
This method tests for !=
.
impl<P: Ord + Protocol> Ord for LocalEndpoint<P>
[src]
fn cmp(&self, __arg_0: &LocalEndpoint<P>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<P: PartialOrd + Protocol> PartialOrd for LocalEndpoint<P>
[src]
fn partial_cmp(&self, __arg_0: &LocalEndpoint<P>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &LocalEndpoint<P>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &LocalEndpoint<P>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &LocalEndpoint<P>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &LocalEndpoint<P>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<P: Hash + Protocol> Hash for LocalEndpoint<P>
[src]
fn hash<__HP: Hasher>(&self, __arg_0: &mut __HP)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.