pub enum BrokerToClient {
JobResponse(ClientJobId, JobOutcomeResult),
JobStatusUpdate(ClientJobId, JobBrokerStatus),
TransferArtifact(Sha256Digest),
GeneralError(String),
}Expand description
Message sent from the broker to a client. The broker won’t send a message until it has received
a Hello and determined the type of its interlocutor.
Variants§
JobResponse(ClientJobId, JobOutcomeResult)
JobStatusUpdate(ClientJobId, JobBrokerStatus)
TransferArtifact(Sha256Digest)
GeneralError(String)
Trait Implementations§
Source§impl Clone for BrokerToClient
impl Clone for BrokerToClient
Source§fn clone(&self) -> BrokerToClient
fn clone(&self) -> BrokerToClient
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 BrokerToClient
impl Debug for BrokerToClient
Source§impl<'de> Deserialize<'de> for BrokerToClient
impl<'de> Deserialize<'de> for BrokerToClient
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 PartialEq for BrokerToClient
impl PartialEq for BrokerToClient
Source§impl Serialize for BrokerToClient
impl Serialize for BrokerToClient
impl StructuralPartialEq for BrokerToClient
Auto Trait Implementations§
impl Freeze for BrokerToClient
impl RefUnwindSafe for BrokerToClient
impl Send for BrokerToClient
impl Sync for BrokerToClient
impl Unpin for BrokerToClient
impl UnwindSafe for BrokerToClient
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