Enum eventstore_tcp::adapted::AdaptedMessage [] [src]

pub enum AdaptedMessage<'a> {
    HeartbeatRequest,
    HeartbeatResponse,
    Ping,
    Pong,
    WriteEvents(WriteEvents<'a>),
    WriteEventsCompleted(Result<WriteEventsCompleted, WriteEventsFailure>),
    ReadEvent(ReadEvent<'a>),
    ReadEventCompleted(Result<ResolvedIndexedEvent<'a>, ReadEventError<'a>>),
    ReadStreamEvents(ReadDirectionReadStreamEvents<'a>),
    ReadStreamEventsCompleted(ReadDirectionResult<ReadStreamCompleted<'a>, ReadStreamError<'a>>),
    ReadAllEvents(ReadDirectionReadAllEvents),
    ReadAllEventsCompleted(ReadDirectionResult<ReadAllCompleted<'a>, ReadAllError<'a>>),
    BadRequest(BadRequestMessage<'a>),
    NotHandled(NotHandledInfo<'a>),
    Authenticate,
    Authenticated,
    NotAuthenticated(NotAuthenticatedMessage<'a>),
}
[]

Enumeration of converted messages for more oxidized API.

Variants

[]

Requests heartbeat from the other side. Unsure if clients or server sends these.

[]

Response to a heartbeat request.

[]

Ping request, similar to heartbeat.

[]

Ping response.

[]

Append to stream request

[]

Append to stream response, which can fail for a number of reasons

[]

Request to read a single event from a stream

[]

Response to a single event read

[]

Request to read a stream from a point forward or backward

[]

Response to a stream read in given direction

[]

Request to read a stream of all events from a position forward or backward

[]

Response to a read all in given direction

[]

Request was not understood. Please open an issue!

[]

Correlated request was not handled. This is the likely response to requests where require_master is true, but the connected endpoint is not master and cannot reach it.

[]

Request to authenticate attached credentials.

[]

Positive authentication response. The credentials used to Authenticate previously can be used in successive requests.

[]

Negative authentication response, or response to any sent request for which used authentication was not accepted.

Methods

impl<'a> AdaptedMessage<'a>
[src]

[]

Converts the adapted back to raw for encoding.

Trait Implementations

impl<'a> Debug for AdaptedMessage<'a>
[src]

[]

Formats the value using the given formatter.

impl<'a> PartialEq for AdaptedMessage<'a>
[src]

[]

This method tests for self and other values to be equal, and is used by ==. Read more

[]

This method tests for !=.

impl<'a> Clone for AdaptedMessage<'a>
[src]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl<'a> From<BadRequestMessage<'a>> for AdaptedMessage<'a>
[src]

[]

Performs the conversion.

impl<'a> From<NotAuthenticatedMessage<'a>> for AdaptedMessage<'a>
[src]

[]

Performs the conversion.