Struct nng::Pipe[][src]

pub struct Pipe { /* fields omitted */ }

An NNG communication pipe.

A pipe can be thought of as a single connection and are associated with either the listener or dialer that created them. Therefore, they are automatically associated with a single socket.

Most applications should never concern themselves with individual pipes. However, it is possible to access a pipe when more information about the source of the message is needed or when more control is required over message delivery.

See the NNG documentation for more information.

Implementations

impl Pipe[src]

pub fn dialer(self) -> Option<Dialer>[src]

Returns the dialer associated with this pipe, if any.

pub fn listener(self) -> Option<Listener>[src]

Returns the listener associated with this pipe, if any.

pub fn close(self)[src]

Closes the pipe.

Messages that have been submitted for sending may be flushed or delivered, depending upon the transport and the linger option. Pipe are automatically closed when their creator closes or when the remote peer closes the underlying connection.

Trait Implementations

impl Clone for Pipe[src]

impl Copy for Pipe[src]

impl Debug for Pipe[src]

impl Eq for Pipe[src]

impl GetOpt<KeepAlive> for Pipe[src]

impl GetOpt<LocalAddr> for Pipe[src]

impl GetOpt<NoDelay> for Pipe[src]

impl GetOpt<PeerPid> for Pipe[src]

impl GetOpt<RecvMaxSize> for Pipe[src]

impl GetOpt<RemAddr> for Pipe[src]

impl GetOpt<RequestHeaders> for Pipe[src]

impl GetOpt<ResponseHeaders> for Pipe[src]

impl GetOpt<Verified> for Pipe[src]

impl Hash for Pipe[src]

impl Ord for Pipe[src]

impl PartialEq<Pipe> for Pipe[src]

impl PartialOrd<Pipe> for Pipe[src]

impl SetOpt<PeerGid> for Pipe[src]

impl SetOpt<PeerUid> for Pipe[src]

Auto Trait Implementations

impl RefUnwindSafe for Pipe

impl Send for Pipe

impl Sync for Pipe

impl Unpin for Pipe

impl UnwindSafe for Pipe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Options for T where
    T: HasOpts, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.