Struct lighthouse_protocol::ClientMessage
source · pub struct ClientMessage<P> {
pub request_id: i32,
pub verb: Verb,
pub path: Vec<String>,
pub meta: HashMap<String, String>,
pub authentication: Authentication,
pub payload: P,
}
Expand description
A message originating from the lighthouse client.
Fields§
§request_id: i32
§verb: Verb
§path: Vec<String>
§meta: HashMap<String, String>
§authentication: Authentication
§payload: P
Implementations§
source§impl ClientMessage<Value>
impl ClientMessage<Value>
pub fn decode_payload<R>(self) -> Result<ClientMessage<R>, ValueError>where
R: for<'de> Deserialize<'de>,
Trait Implementations§
source§impl<P: Clone> Clone for ClientMessage<P>
impl<P: Clone> Clone for ClientMessage<P>
source§fn clone(&self) -> ClientMessage<P>
fn clone(&self) -> ClientMessage<P>
Returns a copy 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<P: Debug> Debug for ClientMessage<P>
impl<P: Debug> Debug for ClientMessage<P>
source§impl<'de, P> Deserialize<'de> for ClientMessage<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for ClientMessage<P>where
P: Deserialize<'de>,
source§fn 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
source§impl<P: PartialEq> PartialEq for ClientMessage<P>
impl<P: PartialEq> PartialEq for ClientMessage<P>
source§fn eq(&self, other: &ClientMessage<P>) -> bool
fn eq(&self, other: &ClientMessage<P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<P> Serialize for ClientMessage<P>where
P: Serialize,
impl<P> Serialize for ClientMessage<P>where
P: Serialize,
impl<P: Eq> Eq for ClientMessage<P>
impl<P> StructuralPartialEq for ClientMessage<P>
Auto Trait Implementations§
impl<P> Freeze for ClientMessage<P>where
P: Freeze,
impl<P> RefUnwindSafe for ClientMessage<P>where
P: RefUnwindSafe,
impl<P> Send for ClientMessage<P>where
P: Send,
impl<P> Sync for ClientMessage<P>where
P: Sync,
impl<P> Unpin for ClientMessage<P>where
P: Unpin,
impl<P> UnwindSafe for ClientMessage<P>where
P: UnwindSafe,
Blanket Implementations§
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