pub enum BrickMessage {
WeightUpdate {
brick_name: String,
weights: Vec<u8>,
version: u64,
},
StateChange {
brick_name: String,
event: String,
},
ExecutionRequest {
brick_name: String,
input_key: String,
request_id: u64,
},
ExecutionResult {
request_id: u64,
output_key: String,
success: bool,
},
}Expand description
Message for PUB/SUB coordination
Variants§
WeightUpdate
Weight update message
Fields
StateChange
State change notification
ExecutionRequest
Request brick execution
Fields
ExecutionResult
Execution result
Trait Implementations§
Source§impl Clone for BrickMessage
impl Clone for BrickMessage
Source§fn clone(&self) -> BrickMessage
fn clone(&self) -> BrickMessage
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 moreAuto Trait Implementations§
impl Freeze for BrickMessage
impl RefUnwindSafe for BrickMessage
impl Send for BrickMessage
impl Sync for BrickMessage
impl Unpin for BrickMessage
impl UnsafeUnpin for BrickMessage
impl UnwindSafe for BrickMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more