Struct eventstore_tcp::package::Package [] [src]

pub struct Package {
    pub authentication: Option<UsernamePassword>,
    pub correlation_id: Uuid,
    pub message: RawMessage<'static>,
}

Frame in the protocol. On the wire, packets are embedded in frames with length prefix and suffix.

Fields

Possible authentication data included in the packet. Some and None values of this will be used to generate corresponding TcpFlags first bit.

Before sending an request to the server client generates a new random UUID using uuid::Uuid::new_v4() and later server will respond using the same correlation_id.

Enumeration of possible messages.

Trait Implementations

impl Debug for Package
[src]

Formats the value using the given formatter.

impl PartialEq for Package
[src]

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

This method tests for !=.