Enum sctp_rs::NotificationOrData
source · pub enum NotificationOrData {
Notification(Notification),
Data(ReceivedData),
}
Expand description
NotificationOrData: A type returned by a sctp_recv
call.
Variants§
Notification(Notification)
SCTP Notification received by an sctp_recv
call.
Data(ReceivedData)
SCTP Data Received by an sctp_recv
call.
Trait Implementations§
source§impl Clone for NotificationOrData
impl Clone for NotificationOrData
source§fn clone(&self) -> NotificationOrData
fn clone(&self) -> NotificationOrData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NotificationOrData
impl Debug for NotificationOrData
source§impl PartialEq<NotificationOrData> for NotificationOrData
impl PartialEq<NotificationOrData> for NotificationOrData
source§fn eq(&self, other: &NotificationOrData) -> bool
fn eq(&self, other: &NotificationOrData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.