Crate serf_types

Source
Expand description

Types used by the serf crate.

Structs§

JoinMessage
The message broadcasted after we join to associated the node with a lamport clock
KeyRequestMessageencryption
KeyRequest is used to contain input parameters which get broadcasted to all nodes as part of a key query operation.
KeyRequestOptionsencryption
KeyRequestOptions is used to contain optional parameters for a keyring operation
KeyResponseencryption
KeyResponse is used to relay a query for a list of all keys in use.
KeyResponseMessageencryption
Key response message
LamportClock
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.
LamportTime
A lamport time is a simple u64 that represents a point in time.
LeaveMessage
The message broadcasted to signal the intentional to leave.
Member
A single member of the Serf cluster.
Node
Node is consist of id and address, which can be used as a identifier in a distributed system.
NodeAddress
A node address which supports both domain:port and socket address.
NodeId
A unique string identifying a server for all time. The maximum length of an id is 512 bytes.
PushPullMessage
Used when doing a state exchange. This is a relatively large message, but is sent infrequently
PushPullMessageRef
Used when doing a state exchange. This is a relatively large message, but is sent infrequently
QueryFlag
Flags for query message
QueryMessage
Query message
QueryResponseMessage
Query response message
Tags
Tags of a node
UnknownDelegateVersion
Unknown delegate version
UnknownFilterType
Unknown filter type error
UnknownMemberStatus
Unknown member status
UnknownMemberlistDelegateVersion
Unknown delegate version
UnknownMemberlistProtocolVersion
Unknown protocol version
UnknownMessageType
Unknown message type error
UnknownProtocolVersion
Unknown protocol version
UserEvent
Stores all the user events at a specific time
UserEventMessage
Used for user-generated events
UserEvents
Used to buffer events to prevent re-delivery

Enums§

DelegateVersion
Delegate version
Filter
Used with a queryFilter to specify the type of filter we are sending
FilterTransformError
Transform error type for Filter
FilterType
The type of filter
JoinMessageTransformError
Error that can occur when transforming a JoinMessage
KeyResponseMessageTransformErrorencryption
Error that can occur when transforming a KeyResponseMessage.
LamportTimeTransformError
Error that can occur when transforming a lamport time
LeaveMessageTransformError
Error that can occur when transforming a LeaveMessage.
MemberStatus
The member status.
MemberTransformError
Error transforming the Member
MemberlistDelegateVersion
Delegate version
MemberlistProtocolVersion
Protocol version
MessageType
The types of gossip messages Serf will send along memberlist.
NodeAddressError
An error which can be returned when encoding/decoding a NodeAddress.
NodeIdTransformError
Errors that can occur when transforming an NodeId.
NodeTransformError
Error type returned when transforming a Node.
OptionSecretKeyTransformErrorencryption
The error that can occur when transforming a KeyRequestMessage
ProtocolVersion
Protocol version
PushPullMessageTransformError
Error that can occur when transforming a PushPullMessage or PushPullMessageRef.
QueryMessageTransformError
Error that can occur when transforming a QueryMessage.
QueryResponseMessageTransformError
Error that can occur when transforming a QueryResponseMessage.
SerfMessage
The types of gossip messages Serf will send along memberlist.
SerfMessageRef
The reference type of SerfMessage.
SerfMessageTransformError
Error that can occur when transforming a SerfMessage or SerfMessageRef
TagsTransformError
Error that can occur when transforming Tags.
UserEventMessageTransformError
Error that can occur when transforming a UserEventMessage
UserEventTransformError
Error that can occur when transforming a UserEvent
UserEventsTransformError
Error that can occur when transforming a UserEvents

Traits§

AsMessageRef
Used to do a cheap reference to message reference conversion.
Encodable
The type can transform its representation to byte form.
Transformable
The type can transform its representation between structured and byte form.