Module hakuban::object[][src]

Expand description

Object contracts, and supporting structures

Structs

ObjectContractBuilder
ObjectContractBuilderTyped
ObjectContractBuilderWithDeserializer
ObjectContractBuilderWithSerializer
ObjectExpose

Represents a wish, a contract to expose an object

ObjectObserve

Represents a wish, a contract to observe an object

ObjectObserveState

Enums

DefaultSerializerError

Error returned by object accessors if (de)serialization fails and default (de)serializer is used

Type Definitions

ObjectDeserializer

<T, E> = Box<dyn Send + Sync + Fn(&ObjectType, &ObjectRawData) -> Result<T, E>>

ObjectSerializer

<T, E> = Box<dyn Send + Sync + Fn(&T) -> Result<(ObjectType, ObjectRawData), E>>