#[repr(i32)]pub enum RequestType {
Show 40 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,
RegisterSessionTee = 75,
UnregisterSessionTee = 76,
GetSessionTeeStatus = 77,
}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).
RegisterSessionTee = 75
Optional daemon-owned tee telemetry (#131).
UnregisterSessionTee = 76
GetSessionTeeStatus = 77
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 ==.Source§impl PartialOrd for RequestType
impl PartialOrd for RequestType
Source§impl TryFrom<i32> for RequestType
impl TryFrom<i32> for RequestType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<RequestType, UnknownEnumValue>
fn try_from(value: i32) -> Result<RequestType, UnknownEnumValue>
impl Copy for RequestType
impl Eq for RequestType
impl StructuralPartialEq for RequestType
Auto Trait Implementations§
impl Freeze for RequestType
impl RefUnwindSafe for RequestType
impl Send for RequestType
impl Sync for RequestType
impl Unpin for RequestType
impl UnsafeUnpin for RequestType
impl UnwindSafe for RequestType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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