Source code for nix_daemon_protocol.ensure_path
"""EnsurePath operation — WireRequest/WireResponse types."""
from __future__ import annotations
from typing import ClassVar
from .store_path import StorePath
from .wire_ops import WireRequest, WireResponse
[docs]
class EnsurePathResponse(WireResponse):
"""EnsurePath response — single uint64 value."""
value: int
[docs]
class EnsurePathRequest(WireRequest):
"""EnsurePath request — single StorePath on wire."""
op: ClassVar[int] = 10
response_type = EnsurePathResponse
path: StorePath