Enum qpid_proton_sys::pn_event_type_t[][src]

#[repr(C)]
pub enum pn_event_type_t {
Show variants PN_EVENT_NONE, PN_REACTOR_INIT, PN_REACTOR_QUIESCED, PN_REACTOR_FINAL, PN_TIMER_TASK, PN_CONNECTION_INIT, PN_CONNECTION_BOUND, PN_CONNECTION_UNBOUND, PN_CONNECTION_LOCAL_OPEN, PN_CONNECTION_REMOTE_OPEN, PN_CONNECTION_LOCAL_CLOSE, PN_CONNECTION_REMOTE_CLOSE, PN_CONNECTION_FINAL, PN_SESSION_INIT, PN_SESSION_LOCAL_OPEN, PN_SESSION_REMOTE_OPEN, PN_SESSION_LOCAL_CLOSE, PN_SESSION_REMOTE_CLOSE, PN_SESSION_FINAL, PN_LINK_INIT, PN_LINK_LOCAL_OPEN, PN_LINK_REMOTE_OPEN, PN_LINK_LOCAL_CLOSE, PN_LINK_REMOTE_CLOSE, PN_LINK_LOCAL_DETACH, PN_LINK_REMOTE_DETACH, PN_LINK_FLOW, PN_LINK_FINAL, PN_DELIVERY, PN_TRANSPORT, PN_TRANSPORT_AUTHENTICATED, PN_TRANSPORT_ERROR, PN_TRANSPORT_HEAD_CLOSED, PN_TRANSPORT_TAIL_CLOSED, PN_TRANSPORT_CLOSED, PN_SELECTABLE_INIT, PN_SELECTABLE_UPDATED, PN_SELECTABLE_READABLE, PN_SELECTABLE_WRITABLE, PN_SELECTABLE_ERROR, PN_SELECTABLE_EXPIRED, PN_SELECTABLE_FINAL, PN_CONNECTION_WAKE, PN_LISTENER_ACCEPT, PN_LISTENER_CLOSE, PN_PROACTOR_INTERRUPT, PN_PROACTOR_TIMEOUT, PN_PROACTOR_INACTIVE, PN_LISTENER_OPEN, PN_RAW_CONNECTION_CONNECTED, PN_RAW_CONNECTION_CLOSED_READ, PN_RAW_CONNECTION_CLOSED_WRITE, PN_RAW_CONNECTION_DISCONNECTED, PN_RAW_CONNECTION_NEED_READ_BUFFERS, PN_RAW_CONNECTION_NEED_WRITE_BUFFERS, PN_RAW_CONNECTION_READ, PN_RAW_CONNECTION_WRITTEN, PN_RAW_CONNECTION_WAKE,
}

Variants

PN_EVENT_NONE
Expand description

Defined as a programming convenience. No event of this type will ever be generated.

PN_REACTOR_INIT
Expand description

A reactor has been started. Events of this type point to the reactor.

PN_REACTOR_QUIESCED
Expand description

A reactor has no more events to process. Events of this type point to the reactor.

PN_REACTOR_FINAL
Expand description

A reactor has been stopped. Events of this type point to the reactor.

PN_TIMER_TASK
Expand description

A timer event has occurred.

PN_CONNECTION_INIT
Expand description

The connection has been created. This is the first event that will ever be issued for a connection. Events of this type point to the relevant connection.

PN_CONNECTION_BOUND
Expand description

The connection has been bound to a transport. This event is issued when the ::pn_transport_bind() operation is invoked.

PN_CONNECTION_UNBOUND
Expand description

The connection has been unbound from its transport. This event is issued when the ::pn_transport_unbind() operation is invoked.

PN_CONNECTION_LOCAL_OPEN
Expand description

The local connection endpoint has been closed. Events of this type point to the relevant connection.

PN_CONNECTION_REMOTE_OPEN
Expand description

The remote endpoint has opened the connection. Events of this type point to the relevant connection.

PN_CONNECTION_LOCAL_CLOSE
Expand description

The local connection endpoint has been closed. Events of this type point to the relevant connection.

PN_CONNECTION_REMOTE_CLOSE
Expand description

The remote endpoint has closed the connection. Events of this type point to the relevant connection.

PN_CONNECTION_FINAL
Expand description

The connection has been freed and any outstanding processing has been completed. This is the final event that will ever be issued for a connection.

PN_SESSION_INIT
Expand description

The session has been created. This is the first event that will ever be issued for a session.

PN_SESSION_LOCAL_OPEN
Expand description

The local session endpoint has been opened. Events of this type point to the relevant session.

PN_SESSION_REMOTE_OPEN
Expand description

The remote endpoint has opened the session. Events of this type point to the relevant session.

PN_SESSION_LOCAL_CLOSE
Expand description

The local session endpoint has been closed. Events of this type point ot the relevant session.

PN_SESSION_REMOTE_CLOSE
Expand description

The remote endpoint has closed the session. Events of this type point to the relevant session.

PN_SESSION_FINAL
Expand description

The session has been freed and any outstanding processing has been completed. This is the final event that will ever be issued for a session.

Expand description

The link has been created. This is the first event that will ever be issued for a link.

Expand description

The local link endpoint has been opened. Events of this type point ot the relevant link.

Expand description

The remote endpoint has opened the link. Events of this type point to the relevant link.

Expand description

The local link endpoint has been closed. Events of this type point to the relevant link.

Expand description

The remote endpoint has closed the link. Events of this type point to the relevant link.

Expand description

The local link endpoint has been detached. Events of this type point to the relevant link.

Expand description

The remote endpoint has detached the link. Events of this type point to the relevant link.

Expand description

The flow control state for a link has changed. Events of this type point to the relevant link.

Expand description

The link has been freed and any outstanding processing has been completed. This is the final event that will ever be issued for a link. Events of this type point to the relevant link.

PN_DELIVERY
Expand description

A delivery has been created or updated. Events of this type point to the relevant delivery.

PN_TRANSPORT
Expand description

The transport has new data to read and/or write. Events of this type point to the relevant transport.

PN_TRANSPORT_AUTHENTICATED
Expand description

The transport has authenticated. If this is received by a server the associated transport has authenticated an incoming connection and pn_transport_get_user() can be used to obtain the authenticated user.

PN_TRANSPORT_ERROR
Expand description

Indicates that a transport error has occurred. Use ::pn_transport_condition() to access the details of the error from the associated transport.

PN_TRANSPORT_HEAD_CLOSED
Expand description

Indicates that the “head” or writing end of the transport has been closed. This means the transport will never produce more bytes for output to the network. Events of this type point to the relevant transport.

PN_TRANSPORT_TAIL_CLOSED
Expand description

Indicates that the tail of the transport has been closed. This means the transport will never be able to process more bytes from the network. Events of this type point to the relevant transport.

PN_TRANSPORT_CLOSED
Expand description

Indicates that the both the head and tail of the transport are closed. Events of this type point to the relevant transport.

PN_SELECTABLE_INIT
PN_SELECTABLE_UPDATED
PN_SELECTABLE_READABLE
PN_SELECTABLE_WRITABLE
PN_SELECTABLE_ERROR
PN_SELECTABLE_EXPIRED
PN_SELECTABLE_FINAL
PN_CONNECTION_WAKE
Expand description

pn_connection_wake() was called. Events of this type point to the @ref pn_connection_t.

PN_LISTENER_ACCEPT
Expand description

Indicates the listener has an incoming connection, call pn_listener_accept2() to accept it. Events of this type point to the @ref pn_listener_t.

PN_LISTENER_CLOSE
Expand description

Indicates the listener has closed. pn_listener_condition() provides error information. Events of this type point to the @ref pn_listener_t.

PN_PROACTOR_INTERRUPT
Expand description

Indicates pn_proactor_interrupt() was called to interrupt a proactor thread. Events of this type point to the @ref pn_proactor_t.

PN_PROACTOR_TIMEOUT
Expand description

Timeout set by pn_proactor_set_timeout() time limit expired. Events of this type point to the @ref pn_proactor_t.

PN_PROACTOR_INACTIVE
Expand description

The proactor has become inactive: all listeners and connections were closed and the timeout (if set) expired or was cancelled. There will be no further events unless new listeners or connections are opened, or a new timeout is set (possibly in other threads in a multi-threaded program.)

Events of this type point to the @ref pn_proactor_t.

PN_LISTENER_OPEN
Expand description

The listener is listening. Events of this type point to the @ref pn_listener_t.

PN_RAW_CONNECTION_CONNECTED
Expand description

The raw connection connected. Now would be a good time to give the raw connection some buffers to read bytes from the underlying socket. If you don’t do it now you will get @ref PN_RAW_CONNECTION_NEED_READ_BUFFERS (and @ref PN_RAW_CONNECTION_NEED_WRITE_BUFFERS) events when the socket is readable (or writable) but there are not buffers available.

Events of this type point to a @ref pn_raw_connection_t

PN_RAW_CONNECTION_CLOSED_READ
Expand description

The remote end of the raw connection closed the connection so that we can no longer read.

When both this and @ref PN_RAW_CONNECTION_CLOSED_WRITE event have occurred then the @ref PN_RAW_CONNECTION_DISCONNECTED event will be generated.

Events of this type point to a @ref pn_raw_connection_t

PN_RAW_CONNECTION_CLOSED_WRITE
Expand description

The remote end of the raw connection closed the connection so that we can no longer write.

When both this and @ref PN_RAW_CONNECTION_CLOSED_READ event have occurred then the @ref PN_RAW_CONNECTION_DISCONNECTED event will be generated.

Events of this type point to a @ref pn_raw_connection_t

PN_RAW_CONNECTION_DISCONNECTED
Expand description

The raw connection is disconnected. No more bytes will be read or written on the connection. Every buffer in use will already either have been returned using a @ref PN_RAW_CONNECTION_READ or @ref PN_RAW_CONNECTION_WRITTEN event. This event will always be the last for this raw connection, and so the application can clean up the raw connection at this point.

Events of this type point to a @ref pn_raw_connection_t

PN_RAW_CONNECTION_NEED_READ_BUFFERS
Expand description

The raw connection might need more read buffers. The connection is readable, but the connection has no buffer to read the bytes into. If you supply some buffers now maybe you’ll get a @ref PN_RAW_CONNECTION_READ event soon, but no guarantees.

This event is edge triggered and you will only get it once until you give the raw connection some more read buffers.

Events of this type point to a @ref pn_raw_connection_t

PN_RAW_CONNECTION_NEED_WRITE_BUFFERS
Expand description

The raw connection might need more write buffers. The connection is writable but has no buffers to write. If you give the raw connection something to write using @ref pn_raw_connection_write_buffers the raw connection can write them. It is not necessary to wait for this event before sending buffers to write, but it can be used to aid in flow control (maybe).

This event is edge triggered and you will only get it once until you give the raw connection something more to write.

Events of this type point to a @ref pn_raw_connection_t

PN_RAW_CONNECTION_READ
Expand description

The raw connection read bytes: The bytes that were read are in one of the read buffers given to the raw connection.

This event will be sent if there are bytes that have been read in a buffer owned by the raw connection and there is no @ref PN_RAW_CONNECTION_READ event still queued.

When a connection closes all read buffers are returned to the application using @ref PN_RAW_CONNECTION_READ events with empty buffers.

Events of this type point to a @ref pn_raw_connection_t

PN_RAW_CONNECTION_WRITTEN
Expand description

The raw connection has finished a write and the buffers that were used are no longer in use and can be recycled.

This event will be sent if there are buffers that have been written still owned by the raw connection and there is no @ref PN_RAW_CONNECTION_WRITTEN event currently queued.

When a connection closes all write buffers are returned using @ref PN_RAW_CONNECTION_WRITTEN events.

Events of this type point to a @ref pn_raw_connection_t

PN_RAW_CONNECTION_WAKE
Expand description

The raw connection was woken by @ref pn_raw_connection_wake

Events of this type point to a @ref pn_raw_connection_t

Trait Implementations

impl Debug for pn_event_type_t[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<pn_event_type_t> for pn_event_type_t[src]

fn eq(&self, other: &pn_event_type_t) -> bool[src]

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl StructuralPartialEq for pn_event_type_t[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.