pub enum Response {
Show 28 variants
Pong,
Ok,
DaemonStatus(DaemonStatus),
ClientInfo(ClientInfo),
Pair(PairPayload),
PairedClient(PairedClient),
PairedClients(Vec<PairedClient>),
Revoked(u32),
Error(VexProtoError),
RepoRegistered(Repository),
RepoList(Vec<Repository>),
RepoUnregistered,
RepoDefaultBranchSet,
WorkstreamCreated(Workstream),
WorkstreamList(Vec<Repository>),
WorkstreamDeleted,
AgentSpawned(Agent),
AgentSpawnedInPlace {
agent: Agent,
exec_cmd: String,
},
AgentKilled,
AgentList(Vec<Agent>),
ShellSpawned(ShellSession),
ShellKilled,
ShellList(Vec<ShellSession>),
ShellRegistered {
shell_id: String,
},
ShellAttached,
ShellDetached,
PtyOutput {
shell_id: String,
data: String,
},
ShellExited {
shell_id: String,
code: Option<i32>,
},
}Variants§
Pong
Ok
DaemonStatus(DaemonStatus)
ClientInfo(ClientInfo)
Pair(PairPayload)
Returned after PairCreate; contains the plaintext secret (one-time)
PairedClient(PairedClient)
PairedClients(Vec<PairedClient>)
Revoked(u32)
Returned by PairRevoke / PairRevokeAll, carrying the revoked count.
Error(VexProtoError)
RepoRegistered(Repository)
RepoList(Vec<Repository>)
RepoUnregistered
RepoDefaultBranchSet
WorkstreamCreated(Workstream)
WorkstreamList(Vec<Repository>)
Full tree: repos → workstreams → agents
WorkstreamDeleted
AgentSpawned(Agent)
AgentSpawnedInPlace
Returned by AgentSpawnInPlace; client should exec the given command.
Fields
AgentKilled
AgentList(Vec<Agent>)
ShellSpawned(ShellSession)
ShellKilled
ShellList(Vec<ShellSession>)
ShellRegistered
Sent back to vex shell after ShellRegister; carries the assigned ID.
ShellAttached
Sent back after AttachShell; followed by streaming PtyOutput frames.
ShellDetached
PtyOutput
PTY output from the shell (base64-encoded bytes).
ShellExited
Emitted by vexd when a shell process exits.
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
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