[][src]Struct libsrt_sys::SRT_EPOLL_OPT

#[repr(transparent)]pub struct SRT_EPOLL_OPT(pub c_uint);

Implementations

impl SRT_EPOLL_OPT[src]

impl SRT_EPOLL_OPT[src]

pub const SRT_EPOLL_IN: SRT_EPOLL_OPT[src]

Ready for 'recv' operation:

  • For stream mode it means that at least 1 byte is available. In this mode the buffer may extract only a part of the packet, leaving next data possible for extraction later.

  • For message mode it means that there is at least one packet available (this may change in future, as it is desired that one full message should only wake up, not single packet of a not yet extractable message).

  • For live mode it means that there's at least one packet ready to play.

  • For listener sockets, this means that there is a new connection waiting for pickup through the srt_accept() call, that is, the next call to srt_accept() will succeed without blocking (see an alias SRT_EPOLL_ACCEPT below).

impl SRT_EPOLL_OPT[src]

pub const SRT_EPOLL_OUT: SRT_EPOLL_OPT[src]

Ready for 'send' operation.

  • For stream mode it means that there's a free space in the sender buffer for at least 1 byte of data. The next send operation will only allow to send as much data as it is free space in the buffer.

  • For message mode it means that there's a free space for at least one UDP packet. The edge-triggered mode can be used to pick up updates as the free space in the sender buffer grows.

  • For live mode it means that there's a free space for at least one UDP packet. On the other hand, no readiness for OUT usually means an extraordinary congestion on the link, meaning also that you should immediately slow down the sending rate or you may get a connection break soon.

  • For non-blocking sockets used with srt_connect* operation, this flag simply means that the connection was established.

impl SRT_EPOLL_OPT[src]

pub const SRT_EPOLL_ERR: SRT_EPOLL_OPT[src]

The socket has encountered an error in the last operation and the next operation on that socket will end up with error. You can retry the operation, but getting the error from it is certain, so you may as well close the socket.

impl SRT_EPOLL_OPT[src]

pub const SRT_EPOLL_CONNECT: SRT_EPOLL_OPT[src]

The socket has encountered an error in the last operation and the next operation on that socket will end up with error. You can retry the operation, but getting the error from it is certain, so you may as well close the socket.

impl SRT_EPOLL_OPT[src]

pub const SRT_EPOLL_ACCEPT: SRT_EPOLL_OPT[src]

The socket has encountered an error in the last operation and the next operation on that socket will end up with error. You can retry the operation, but getting the error from it is certain, so you may as well close the socket.

impl SRT_EPOLL_OPT[src]

pub const SRT_EPOLL_UPDATE: SRT_EPOLL_OPT[src]

The socket has encountered an error in the last operation and the next operation on that socket will end up with error. You can retry the operation, but getting the error from it is certain, so you may as well close the socket.

impl SRT_EPOLL_OPT[src]

pub const SRT_EPOLL_ET: SRT_EPOLL_OPT[src]

The socket has encountered an error in the last operation and the next operation on that socket will end up with error. You can retry the operation, but getting the error from it is certain, so you may as well close the socket.

Trait Implementations

impl BitAnd<SRT_EPOLL_OPT> for SRT_EPOLL_OPT[src]

type Output = Self

The resulting type after applying the & operator.

impl BitAndAssign<SRT_EPOLL_OPT> for SRT_EPOLL_OPT[src]

impl BitOr<SRT_EPOLL_OPT> for SRT_EPOLL_OPT[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<SRT_EPOLL_OPT> for SRT_EPOLL_OPT[src]

impl Clone for SRT_EPOLL_OPT[src]

impl Copy for SRT_EPOLL_OPT[src]

impl Debug for SRT_EPOLL_OPT[src]

impl Eq for SRT_EPOLL_OPT[src]

impl Hash for SRT_EPOLL_OPT[src]

impl PartialEq<SRT_EPOLL_OPT> for SRT_EPOLL_OPT[src]

impl StructuralEq for SRT_EPOLL_OPT[src]

impl StructuralPartialEq for SRT_EPOLL_OPT[src]

Auto Trait Implementations

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> 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.