Reply
hololinked.core.eventloop.operations.Reply
dataclass
The event loop's answer to one Operation.
Source code in repo/hololinked/hololinked/core/eventloop/operations.py
Attributes
payload
instance-attribute
the return value, encoded with whatever serializer the objekt is registered against.
preserialized_payload
instance-attribute
binary part of the return value, if the operation produced one.
Functions
__init__
__init__(payload: SerializableData, preserialized_payload: PreserializedData, kind: ReplyKind = ReplyKind.OK) -> None
is_error
timed_out
Whether the operation never started, or started and did not finish in time.
hololinked.core.eventloop.operations.ReplyKind
Bases: StrEnum
How an operation finished, in event loop terms rather than in any protocol's vocabulary.
Source code in repo/hololinked/hololinked/core/eventloop/operations.py
Attributes
ERROR
class-attribute
instance-attribute
raised, payload carries the formatted exception.
EXECUTION_TIMEOUT
class-attribute
instance-attribute
started but did not finish within execution_timeout. It may still be running.
EXIT
class-attribute
instance-attribute
the Thing was asked to stop; there is no meaningful return value.
INVOKATION_TIMEOUT
class-attribute
instance-attribute
never started - it was still queued when invokation_timeout elapsed.