Expand description
Types used by the serf crate.
Structs§
- Join
Message - The message broadcasted after we join to associated the node with a lamport clock
- KeyRequest
Message encryption - KeyRequest is used to contain input parameters which get broadcasted to all nodes as part of a key query operation.
- KeyRequest
Options 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.
- KeyResponse
Message encryption - Key response message
- Lamport
Clock - 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.
- Lamport
Time - A lamport time is a simple u64 that represents a point in time.
- Leave
Message - 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.
- Node
Address - A node address which supports both
domain:portand socket address. - NodeId
- A unique string identifying a server for all time. The maximum length of an id is 512 bytes.
- Push
Pull Message - Used when doing a state exchange. This is a relatively large message, but is sent infrequently
- Push
Pull Message Ref - Used when doing a state exchange. This is a relatively large message, but is sent infrequently
- Query
Flag - Flags for query message
- Query
Message - Query message
- Query
Response Message - Query response message
- Tags
- Tags of a node
- Unknown
Delegate Version - Unknown delegate version
- Unknown
Filter Type - Unknown filter type error
- Unknown
Member Status - Unknown member status
- Unknown
Memberlist Delegate Version - Unknown delegate version
- Unknown
Memberlist Protocol Version - Unknown protocol version
- Unknown
Message Type - Unknown message type error
- Unknown
Protocol Version - Unknown protocol version
- User
Event - Stores all the user events at a specific time
- User
Event Message - Used for user-generated events
- User
Events - Used to buffer events to prevent re-delivery
Enums§
- Delegate
Version - Delegate version
- Filter
- Used with a queryFilter to specify the type of filter we are sending
- Filter
Transform Error - Transform error type for
Filter - Filter
Type - The type of filter
- Join
Message Transform Error - Error that can occur when transforming a JoinMessage
- KeyResponse
Message Transform Error encryption - Error that can occur when transforming a
KeyResponseMessage. - Lamport
Time Transform Error - Error that can occur when transforming a lamport time
- Leave
Message Transform Error - Error that can occur when transforming a
LeaveMessage. - Member
Status - The member status.
- Member
Transform Error - Error transforming the
Member - Memberlist
Delegate Version - Delegate version
- Memberlist
Protocol Version - Protocol version
- Message
Type - The types of gossip messages Serf will send along memberlist.
- Node
Address Error - An error which can be returned when encoding/decoding a
NodeAddress. - Node
IdTransform Error - Errors that can occur when transforming an
NodeId. - Node
Transform Error - Error type returned when transforming a
Node. - Option
Secret KeyTransform Error encryption - The error that can occur when transforming a
KeyRequestMessage - Protocol
Version - Protocol version
- Push
Pull Message Transform Error - Error that can occur when transforming a
PushPullMessageorPushPullMessageRef. - Query
Message Transform Error - Error that can occur when transforming a
QueryMessage. - Query
Response Message Transform Error - Error that can occur when transforming a
QueryResponseMessage. - Serf
Message - The types of gossip messages Serf will send along memberlist.
- Serf
Message Ref - The reference type of
SerfMessage. - Serf
Message Transform Error - Error that can occur when transforming a
SerfMessageorSerfMessageRef - Tags
Transform Error - Error that can occur when transforming
Tags. - User
Event Message Transform Error - Error that can occur when transforming a
UserEventMessage - User
Event Transform Error - Error that can occur when transforming a
UserEvent - User
Events Transform Error - Error that can occur when transforming a
UserEvents
Traits§
- AsMessage
Ref - 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.