pub enum TcpResponse {
    BrokerConnectHello {
        broker_shmem_description: ShMemDescription,
        hostname: String,
    },
    LocalClientAccepted {
        client_id: ClientId,
    },
    RemoteBrokerAccepted {
        broker_id: BrokerId,
    },
    Error {
        description: String,
    },
}
Expand description

Responses for requests to the server.

Variants

BrokerConnectHello

Fields

broker_shmem_description: ShMemDescription

The broker page a new local client can listen on

hostname: String

This broker’s hostname

After receiving a new connection, the broker immediately sends a Hello.

LocalClientAccepted

Fields

client_id: ClientId

The ClientId this client should send messages as. Mainly used for client-side deduplication of incoming messages

Notify the client on the other side that it has been accepted.

RemoteBrokerAccepted

Fields

broker_id: BrokerId

The broker id of this element

Notify the remote broker has been accepted.

Error

Fields

description: String

Error description

Something went wrong when processing the request.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.