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.
Methods
Section titled “Methods”as_microseconds
Section titled “as_microseconds”def as_microseconds(self) -> int:
Return the positive elapsed bound in microseconds, not a timestamp.
Source: python/yosoi/scalars.py:385
duration
Section titled “duration”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.