Enum sctp_proto::Event
source · pub enum Event {
Connected,
AssociationLost {
reason: AssociationError,
},
Stream(StreamEvent),
DatagramReceived,
}
Expand description
Events of interest to the application
Variants§
Connected
The association was successfully established
AssociationLost
The association was lost
Emitted if the peer closes the association or an error is encountered.
Fields
§
reason: AssociationError
Reason that the association was closed
Stream(StreamEvent)
Stream events
DatagramReceived
One or more application datagrams have been received
Trait Implementations§
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> 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