Skip to content

noop 🔗

Debug operation.

NoopMixin 🔗

Mixin providing the NoOp operation for a Session.

This mixin is intended to be used in combination with BaseSession and should not be instantiated on its own.

Intended usage

class Session(BaseSession, NoopMixin): ...

noop 🔗

noop() -> None

Performs the NoOp operation.

Wraps the vaccel_noop() C operation.

Raises:

Type Description
RuntimeError

If the Session is uninitialized.

FFIError

If the C operation fails.

Source code in vaccel/ops/noop.py
def noop(self) -> None:
    """Performs the NoOp operation.

    Wraps the `vaccel_noop()` C operation.

    Raises:
        RuntimeError: If the `Session` is uninitialized.
        FFIError: If the C operation fails.
    """
    ret = lib.vaccel_noop(self._c_ptr)
    if ret != 0:
        raise FFIError(ret, "NoOp operation failed")