pub enum ClientToRelayMsg {
Ping([u8; 8]),
Pong([u8; 8]),
Datagrams {
dst_endpoint_id: EndpointId,
datagrams: Datagrams,
},
}Expand description
Messages that clients send to relays.
Variants§
Ping([u8; 8])
Request from the client to the server to reply to the
other side with a RelayToClientMsg::Pong with the given payload.
Pong([u8; 8])
Reply to a RelayToClientMsg::Ping from a server
with the payload sent previously in the ping.
Datagrams
Request from the client to relay datagrams to given remote endpoint.
Fields
§
dst_endpoint_id: EndpointIdThe remote endpoint to relay to.
Trait Implementations§
Source§impl Clone for ClientToRelayMsg
impl Clone for ClientToRelayMsg
Source§fn clone(&self) -> ClientToRelayMsg
fn clone(&self) -> ClientToRelayMsg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientToRelayMsg
impl Debug for ClientToRelayMsg
Source§impl PartialEq for ClientToRelayMsg
impl PartialEq for ClientToRelayMsg
Source§impl Sink<ClientToRelayMsg> for Client
impl Sink<ClientToRelayMsg> for Client
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moreSource§fn start_send(
self: Pin<&mut Self>,
item: ClientToRelayMsg,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, item: ClientToRelayMsg, ) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreSource§impl Sink<ClientToRelayMsg> for ClientSink
impl Sink<ClientToRelayMsg> for ClientSink
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moreSource§fn start_send(
self: Pin<&mut Self>,
item: ClientToRelayMsg,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, item: ClientToRelayMsg, ) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreimpl Eq for ClientToRelayMsg
impl StructuralPartialEq for ClientToRelayMsg
Auto Trait Implementations§
impl !Freeze for ClientToRelayMsg
impl RefUnwindSafe for ClientToRelayMsg
impl Send for ClientToRelayMsg
impl Sync for ClientToRelayMsg
impl Unpin for ClientToRelayMsg
impl UnwindSafe for ClientToRelayMsg
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.