#[repr(C)]pub struct AssociationChange {
pub ev_type: Event,
pub flags: u16,
pub length: u32,
pub state: AssocChangeState,
pub error: u16,
pub ob_streams: u16,
pub ib_streams: u16,
pub assoc_id: AssociationId,
pub info: Vec<u8>,
}
Expand description
AssociationChange: Structure returned as notification for Association Change.
To subscribe to this notification type, An application should call sctp_subscribe_event
using
the Event
type as Event::Association
.
Fields§
§ev_type: Event
Type of the Notification always SCTP_ASSOC_CHAGE
flags: u16
Notification Flags. Unused currently.
length: u32
Length of the notification data.
state: AssocChangeState
Association Change state. See also AssocChangeState
.
error: u16
Error when state is an error state and error information is available.
ob_streams: u16
Maximum number of outbound streams.
ib_streams: u16
Maximum number of inbound streams.
assoc_id: AssociationId
Association ID for the event.
info: Vec<u8>
Additional data for the event.
Trait Implementations§
Source§impl Clone for AssociationChange
impl Clone for AssociationChange
Source§fn clone(&self) -> AssociationChange
fn clone(&self) -> AssociationChange
Returns a duplicate 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 AssociationChange
impl Debug for AssociationChange
Source§impl PartialEq for AssociationChange
impl PartialEq for AssociationChange
impl Eq for AssociationChange
impl StructuralPartialEq for AssociationChange
Auto Trait Implementations§
impl Freeze for AssociationChange
impl RefUnwindSafe for AssociationChange
impl Send for AssociationChange
impl Sync for AssociationChange
impl Unpin for AssociationChange
impl UnwindSafe for AssociationChange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more