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]

Returns a LocalEndpoint.

Example

use asyncio::local::LocalStreamEndpoint;

assert!(LocalStreamEndpoint::new("file name").is_ok());
assert!(LocalStreamEndpoint::new("file name very long                                                                                                  ").is_err());

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]

impl Debug for LocalEndpoint<LocalDgram>
[src]

Formats the value using the given formatter.

impl Endpoint<LocalStream> for LocalEndpoint<LocalStream>
[src]

impl Debug for LocalEndpoint<LocalStream>
[src]

Formats the value using the given formatter.

impl Endpoint<LocalSeqPacket> for LocalEndpoint<LocalSeqPacket>
[src]

impl Debug for LocalEndpoint<LocalSeqPacket>
[src]

Formats the value using the given formatter.

impl<P: Clone + Protocol> Clone for LocalEndpoint<P>
[src]

Returns a copy of the value. Read more

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]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<P: Ord + Protocol> Ord for LocalEndpoint<P>
[src]

This method returns an Ordering between self and other. Read more

impl<P: PartialOrd + Protocol> PartialOrd for LocalEndpoint<P>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl<P: Protocol> SockAddr for LocalEndpoint<P>
[src]

impl<P: Protocol> Display for LocalEndpoint<P>
[src]

Formats the value using the given formatter.