process: rename from to find

This commit is contained in:
2025-12-04 04:16:03 +00:00
parent 52b81d900c
commit a92b59c808
+1 -1
View File
@@ -41,7 +41,7 @@ pub struct Process {
impl Process {
/// initialize a `Process` from a pid or a process name
pub fn from<T: Into<Identifier>>(identifier: T) -> Result<Self, Error> {
pub fn find<T: Into<Identifier>>(identifier: T) -> Result<Self, Error> {
let identifier = identifier.into();
let snapshot = snapshot::ProcessSnapshot::get_processes()?
.into_iter()