How does electronic shutters work?

The mechanical shutter in the lens can be controlled to be closed part of the time

The CCD substrate can be commanded to drain all charges

A flywheel behind the prism determines the exposure time for each frame