pub enum Response {
Status(Box<StatusReport>),
Console(Box<ConsoleReport>),
Log {
lines: Vec<LogLine>,
},
Incidents {
incidents: Vec<Incident>,
},
Done {
txn: TxnId,
state: TxnState,
message: String,
},
NeedsApproval {
txn: TxnId,
approve: Hash,
what: String,
why: String,
},
Rejected {
reason: String,
message: String,
},
Confirm {
choices: Vec<Choice>,
},
Unmatched {
message: String,
},
Ok {
message: String,
},
Compacted {
entries: Vec<Value>,
},
Error {
message: String,
},
}Variants§
Status(Box<StatusReport>)
Console(Box<ConsoleReport>)
Log
Incidents
Done
A transaction ran to a terminal state.
NeedsApproval
AskFirst: waiting for planarian approve <approve> (as root).
Rejected
Confirm
The phrase matched more than one thing; ask again with choice.
Unmatched
Ok
Compacted
GymCompact (gym hooks): compacted, and the entries the compaction
discarded (the segment it checkpointed), taken in the same call, so
nothing journaled meanwhile is missing from them. As JSON, since the
journal’s Entry lives in txn, which ipc does not depend on.
Error
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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