pub enum ConnectionEvent<'a, StateType: Send + Sync + Clone + Debug> {
Connected(&'a SocketConnection<StateType>),
Disconnected(&'a SocketConnection<StateType>),
LocalServiceTermination,
}
Expand description
Event issued by Composite Protocol Clients & Servers when connections are made or dropped
Variants§
Connected(&'a SocketConnection<StateType>)
Happens when a connection is established with a remote party
Disconnected(&'a SocketConnection<StateType>)
Happens as soon as a disconnection is detected
LocalServiceTermination
Happens when the local code has commanded the service (and all opened connections) to stop
Trait Implementations§
Auto Trait Implementations§
impl<'a, StateType> Freeze for ConnectionEvent<'a, StateType>
impl<'a, StateType> RefUnwindSafe for ConnectionEvent<'a, StateType>where
StateType: RefUnwindSafe,
impl<'a, StateType> Send for ConnectionEvent<'a, StateType>
impl<'a, StateType> Sync for ConnectionEvent<'a, StateType>
impl<'a, StateType> Unpin for ConnectionEvent<'a, StateType>
impl<'a, StateType> UnwindSafe for ConnectionEvent<'a, StateType>where
StateType: RefUnwindSafe,
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