Skip to content
YosoiDocs

CaptureDeadline

yosoi.scalars.CaptureDeadline

class CaptureDeadline(_RustUnsignedResult):

Positive capture deadline represented in microseconds.

Source: python/yosoi/scalars.py:382

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

def as_microseconds(self) -> int:

Return the positive elapsed bound in microseconds, not a timestamp.

Source: python/yosoi/scalars.py:385

def duration(self) -> CaptureDuration:

Convert the microsecond capture bound to a typed duration value.

Returns: A Rust-produced duration preserving the exact microsecond units.

Raises: ValueError: Native capture-duration conversion cannot represent the value.

Source: python/yosoi/scalars.py:389