Enum sctp_proto::Event [−][src]
pub enum Event {
Connected,
ConnectionLost {
reason: ConnectionError,
},
Stream(StreamEvent),
DatagramReceived,
}
Expand description
Events of interest to the application
Variants
Connected
The connection was successfully established
ConnectionLost
Fields
reason: ConnectionError
Reason that the connection was closed
The connection was lost
Emitted if the peer closes the connection or an error is encountered.
Stream(StreamEvent)
Tuple Fields
0: StreamEvent
Stream events
DatagramReceived
One or more application datagrams have been received
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more