Enum Event

Source
#[repr(u16)]
pub enum Event {
Show 15 variants DataIo = 32_768, Association = 32769, Address = 32770, SendFailure = 32771, PeerError = 32772, Shutdown = 32773, PartialDelivery = 32774, AdaptationLayer = 32775, Authentication = 32776, SenderDry = 32777, StreamReset = 32778, AssociationReset = 32779, StreamChange = 32780, SendFailureEvent = 32781, Unknown = 32782,
}
Expand description

Event: Used for Subscribing for SCTP Events

See sctp_subscribe_events for the usage.

Variants§

§

DataIo = 32_768

Event to receive ancillary information with every sctp_recv.

§

Association = 32769

Event related to association change.

§

Address = 32770

Event related to peer address change.

§

SendFailure = 32771

Event related to send failure.

§

PeerError = 32772

Event related to error received from the peer.

§

Shutdown = 32773

Event related to indicate peer shutdown.

§

PartialDelivery = 32774

Event related to indicate partial delivery.

§

AdaptationLayer = 32775

Event related to indicate peer’s partial indication.

§

Authentication = 32776

Authentication event.

§

SenderDry = 32777

Event related to sender having no outstanding user data.

§

StreamReset = 32778

Event related to stream reset.

§

AssociationReset = 32779

Event related to association reset.

§

StreamChange = 32780

Event related to stream change.

§

SendFailureEvent = 32781

Send Failure Event indication. (The actual received information is different from the one received in the SendFailed event.)

§

Unknown = 32782

Unknown Event: Used only when unknwon value is received as a Notification.

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Event

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Event

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Event

Source§

fn eq(&self, other: &Event) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for Event

Source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.