Enum buildsrs_protocol::messages::ClientMessage
source · pub enum ClientMessage {
Hello(ClientHello),
ChallengeResponse(Challenge),
JobRequest(JobRequest),
}
Expand description
Messages which can be sent by the client.
Variants§
Hello(ClientHello)
Initialize connection
ChallengeResponse(Challenge)
Respond to challenge
JobRequest(JobRequest)
Request job
Trait Implementations§
source§impl Clone for ClientMessage
impl Clone for ClientMessage
source§fn clone(&self) -> ClientMessage
fn clone(&self) -> ClientMessage
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 Debug for ClientMessage
impl Debug for ClientMessage
source§impl<'de> Deserialize<'de> for ClientMessage
impl<'de> Deserialize<'de> for ClientMessage
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
Auto Trait Implementations§
impl RefUnwindSafe for ClientMessage
impl Send for ClientMessage
impl Sync for ClientMessage
impl Unpin for ClientMessage
impl UnwindSafe for ClientMessage
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