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]
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 GetOpt<RecvMaxSize> for Pipe
[src]
impl GetOpt<RecvMaxSize> for Pipe
[src]impl GetOpt<RequestHeaders> for Pipe
[src]
impl GetOpt<RequestHeaders> for Pipe
[src]impl GetOpt<ResponseHeaders> for Pipe
[src]
impl GetOpt<ResponseHeaders> for Pipe
[src]impl PartialOrd<Pipe> for Pipe
[src]
impl PartialOrd<Pipe> for Pipe
[src]Auto Trait Implementations
impl RefUnwindSafe for Pipe
impl RefUnwindSafe for Pipe
impl UnwindSafe for Pipe
impl UnwindSafe for Pipe