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
Fields
§
reason: AssociationError
Reason that the association was closed
The association was lost
Emitted if the peer closes the association or an error is encountered.
Stream(StreamEvent)
Stream events
DatagramReceived
One or more application datagrams have been received