Crate ruserf_types
source ·Expand description
Types used by the ruserf
crate.
Structs§
- The message broadcasted after we join to associated the node with a lamport clock
- KeyRequestMessage
encryption
KeyRequest is used to contain input parameters which get broadcasted to all nodes as part of a key query operation. - KeyRequestOptions
encryption
KeyRequestOptions is used to contain optional parameters for a keyring operation - KeyResponse
encryption
KeyResponse is used to relay a query for a list of all keys in use. - KeyResponseMessage
encryption
Key response message - A thread safe implementation of a lamport clock. It uses efficient atomic operations for all of its functions, falling back to a heavy lock only if there are enough CAS failures.
- A lamport time is a simple u64 that represents a point in time.
- The message broadcasted to signal the intentional to leave.
- A single member of the Serf cluster.
- Node is consist of id and address, which can be used as a identifier in a distributed system.
- A node address which supports both
domain:port
and socket address. - A unique string identifying a server for all time. The maximum length of an id is 512 bytes.
- Used when doing a state exchange. This is a relatively large message, but is sent infrequently
- Used when doing a state exchange. This is a relatively large message, but is sent infrequently
- Flags for query message
- Query message
- Query response message
- Tags of a node
- Unknown delegate version
- Unknown filter type error
- Unknown member status
- Unknown delegate version
- Unknown protocol version
- Unknown message type error
- Unknown protocol version
- Stores all the user events at a specific time
- Used for user-generated events
- Used to buffer events to prevent re-delivery
Enums§
- Delegate version
- Used with a queryFilter to specify the type of filter we are sending
- Transform error type for
Filter
- The type of filter
- Error that can occur when transforming a JoinMessage
- KeyResponseMessageTransformError
encryption
Error that can occur when transforming aKeyResponseMessage
. - Error that can occur when transforming a lamport time
- Error that can occur when transforming a
LeaveMessage
. - The member status.
- Error transforming the
Member
- Delegate version
- Protocol version
- The types of gossip messages Serf will send along memberlist.
- An error which can be returned when encoding/decoding a
NodeAddress
. - Errors that can occur when transforming an
NodeId
. - Error type returned when transforming a
Node
. - OptionSecretKeyTransformError
encryption
The error that can occur when transforming aKeyRequestMessage
- Protocol version
- Error that can occur when transforming a
PushPullMessage
orPushPullMessageRef
. - Error that can occur when transforming a
QueryMessage
. - Error that can occur when transforming a
QueryResponseMessage
. - The types of gossip messages Serf will send along memberlist.
- The reference type of
SerfMessage
. - Error that can occur when transforming a
SerfMessage
orSerfMessageRef
- Error that can occur when transforming
Tags
. - Error that can occur when transforming a
UserEventMessage
- Error that can occur when transforming a
UserEvent
- Error that can occur when transforming a
UserEvents
Traits§
- Used to do a cheap reference to message reference conversion.
- The type can transform its representation to byte form.
- The type can transform its representation between structured and byte form.