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
sourceimpl Clone for TcpResponse
impl Clone for TcpResponse
sourcefn clone(&self) -> TcpResponse
fn clone(&self) -> TcpResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TcpResponse
impl Debug for TcpResponse
sourceimpl<'de> Deserialize<'de> for TcpResponse
impl<'de> Deserialize<'de> for TcpResponse
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for TcpResponse
impl Serialize for TcpResponse
Auto Trait Implementations
impl RefUnwindSafe for TcpResponse
impl Send for TcpResponse
impl Sync for TcpResponse
impl Unpin for TcpResponse
impl UnwindSafe for TcpResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
type PreprendResult = Tail
type PreprendResult = Tail
The Resulting TupleList
, of an Prepend::prepend()
call,
including the prepended entry. Read more
sourcefn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.