fn from(op: &str) -> ProcessOperation {
        match op {
            "Exit" => ProcessOperation::Exit,
            "Log" => ProcessOperation::Log,
            "GetVCpuArea" => ProcessOperation::GetVCpuArea,
            "AllocateVector" => ProcessOperation::AllocateVector,
            "SubscribeEvent" => ProcessOperation::SubscribeEvent,
            "GetProcessInfo" => ProcessOperation::GetProcessInfo,
            "RequestCore" => ProcessOperation::RequestCore,
            "AllocatePhysical" => ProcessOperation::AllocatePhysical,
            _ => ProcessOperation::Unknown,
        }
    }
/// Construct a ProcessOperation enum based on a str.
Construct a ProcessOperation enum based on a str.
Construct a ProcessOperation enum based on a str .
fn from(op: &str) -> ProcessOperation {
        match op {
            "Exit" => ProcessOperation::Exit,
            "Log" => ProcessOperation::Log,
            "GetVCpuArea" => ProcessOperation::GetVCpuArea,
            "AllocateVector" => ProcessOperation::AllocateVector,
            "SubscribeEvent" => ProcessOperation::SubscribeEvent,
            "GetProcessInfo" => ProcessOperation::GetProcessInfo,
            "RequestCore" => ProcessOperation::RequestCore,
            "AllocatePhysical" => ProcessOperation::AllocatePhysical,
            _ => ProcessOperation::Unknown,
        }
    }
fn from ( op : & str ) -> ProcessOperation { match op { " " => ProcessOperation :: Exit , " " => ProcessOperation :: Log , " " => ProcessOperation :: GetVCpuArea , " " => ProcessOperation :: AllocateVector , " " => ProcessOperation :: SubscribeEvent , " " => ProcessOperation :: GetProcessInfo , " " => ProcessOperation :: RequestCore , " " => ProcessOperation :: AllocatePhysical , _ => ProcessOperation :: Unknown , } }
Construct a ProcessOperation enum based on a str.
Construct a ProcessOperation enum based on a str .
op
&str
op
&str