pub enum CommandResult {
Show 21 variants
NodeStarted {
port: u16,
id: String,
},
NodeStopped,
NodeList {
nodes: Vec<String>,
},
SwarmCreated {
id: String,
agents: usize,
},
SwarmRunning {
id: String,
},
SwarmList {
swarms: Vec<String>,
},
NeuralCreated {
path: String,
},
NeuralTrained {
model: String,
epochs: usize,
},
NeuralPrediction {
output: Vec<f32>,
},
MeshInfo {
agents: usize,
tasks: usize,
},
AgentAdded {
id: String,
name: String,
},
TaskSubmitted {
id: String,
name: String,
},
MarketInitialized {
db_path: String,
},
MarketOfferCreated {
slots: u64,
price: u64,
},
MarketBidSubmitted {
task: String,
max_price: u64,
},
MarketStatus {
active_offers: usize,
active_bids: usize,
},
MarketTerms {
terms: String,
},
WalletBalance {
balance: u64,
},
WalletTransferCompleted {
to: String,
amount: u64,
},
WalletHistory {
transactions: Vec<String>,
},
Status {
mesh_active: bool,
nodes: usize,
agents: usize,
swarms: usize,
},
}
Expand description
Command execution result
Variants§
NodeStarted
NodeStopped
NodeList
SwarmCreated
SwarmRunning
SwarmList
NeuralCreated
NeuralTrained
NeuralPrediction
MeshInfo
AgentAdded
TaskSubmitted
MarketInitialized
MarketOfferCreated
MarketBidSubmitted
MarketStatus
MarketTerms
WalletBalance
WalletTransferCompleted
WalletHistory
Status
Trait Implementations§
Source§impl Clone for CommandResult
impl Clone for CommandResult
Source§fn clone(&self) -> CommandResult
fn clone(&self) -> CommandResult
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 CommandResult
impl Debug for CommandResult
Source§impl<'de> Deserialize<'de> for CommandResult
impl<'de> Deserialize<'de> for CommandResult
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 Freeze for CommandResult
impl RefUnwindSafe for CommandResult
impl Send for CommandResult
impl Sync for CommandResult
impl Unpin for CommandResult
impl UnwindSafe for CommandResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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