#[repr(i32)]pub enum RequestType {
Show 37 variants
Unspecified = 0,
Register = 10,
Unregister = 11,
SpawnDaemon = 12,
ListActive = 20,
ListByOriginator = 21,
GetProcessTree = 22,
KillZombies = 30,
KillTree = 31,
Ping = 40,
Shutdown = 41,
Status = 42,
ServiceStart = 50,
ServiceStop = 51,
ServiceRestart = 52,
ServiceDelete = 53,
ServiceList = 54,
ServiceDescribe = 55,
ServiceLogs = 56,
ServiceFlush = 57,
ServiceSave = 58,
ServiceResurrect = 59,
SpawnPtySession = 60,
AttachPtySession = 61,
DetachPtySession = 62,
ListPtySessions = 63,
TerminatePtySession = 64,
SpawnPipeSession = 65,
AttachPipeStream = 66,
DetachPipeStream = 67,
ListPipeSessions = 68,
TerminatePipeSession = 69,
WritePipeStdin = 70,
GetSessionBacklog = 71,
PurgeExitedSessions = 72,
BulkTerminateSessions = 73,
ResizePtySession = 74,
}Variants§
Unspecified = 0
Register = 10
Unregister = 11
SpawnDaemon = 12
ListActive = 20
ListByOriginator = 21
GetProcessTree = 22
KillZombies = 30
KillTree = 31
Ping = 40
Shutdown = 41
Status = 42
ServiceStart = 50
Service supervision (runpm) — Phase 1 ships stubs that respond OK.
ServiceStop = 51
ServiceRestart = 52
ServiceDelete = 53
ServiceList = 54
ServiceDescribe = 55
ServiceLogs = 56
ServiceFlush = 57
ServiceSave = 58
ServiceResurrect = 59
SpawnPtySession = 60
Detachable PTY sessions (issue #130 milestone 2).
AttachPtySession = 61
DetachPtySession = 62
ListPtySessions = 63
TerminatePtySession = 64
SpawnPipeSession = 65
Detachable pipe-backed sessions (issue #130 milestone 3). Pipe sessions own three independently-attachable streams (stdin is write-only, exposed as WRITE_PIPE_STDIN; stdout and stderr are streaming attaches via ATTACH_PIPE_STREAM with a stream selector).
AttachPipeStream = 66
DetachPipeStream = 67
ListPipeSessions = 68
TerminatePipeSession = 69
WritePipeStdin = 70
GetSessionBacklog = 71
Session backlog snapshot (#130 milestone 7 B4). Returns the current ring-buffer contents for any daemon-owned session (PTY or pipe) without consuming them — same buffer continues to fill, and a real attach later still sees the same backlog.
PurgeExitedSessions = 72
Bulk session ops (#130 milestone 9 H4).
BulkTerminateSessions = 73
ResizePtySession = 74
Resize a PTY session without attaching (#130 M5 follow-up).
Implementations§
Source§impl RequestType
impl RequestType
Source§impl RequestType
impl RequestType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for RequestType
impl Clone for RequestType
Source§fn clone(&self) -> RequestType
fn clone(&self) -> RequestType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestType
impl Debug for RequestType
Source§impl Default for RequestType
impl Default for RequestType
Source§fn default() -> RequestType
fn default() -> RequestType
Source§impl From<RequestType> for i32
impl From<RequestType> for i32
Source§fn from(value: RequestType) -> i32
fn from(value: RequestType) -> i32
Source§impl Hash for RequestType
impl Hash for RequestType
Source§impl Ord for RequestType
impl Ord for RequestType
Source§fn cmp(&self, other: &RequestType) -> Ordering
fn cmp(&self, other: &RequestType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RequestType
impl PartialEq for RequestType
Source§fn eq(&self, other: &RequestType) -> bool
fn eq(&self, other: &RequestType) -> bool
self and other values to be equal, and is used by ==.