code: def _get_device_methods(self, device):
          
          if device.is_filesystem:
              if device.is_mounted:
                  if self._mounter._browser:
                      yield 'browse'
                  if self._mounter._terminal:
                      yield 'terminal'
                  yield 'unmount'
              else:
                  yield 'mount'
          elif device.is_crypto:
              if device.is_unlocked:
                  yield 'lock'
              else:
                  yield 'unlock'
              cache = self._mounter._cache
              if cache and device in cache:
                  yield 'forget_password'
          if device.is_ejectable and device.has_media:
              yield 'eject'
          if device.is_detachable:
              yield 'detach'
          if device.is_loop:
              yield 'delete'
docs: Return an iterable over all available methods the device has.