Add getters for `PortCfg`

Bug: 382291660
Test: dead code

Change-Id: I29b9b698b154bbe6b8281b059a93f8987aaa155b
diff --git a/lib/tipc/rust/src/service.rs b/lib/tipc/rust/src/service.rs
index 41d51f9..325f9cc 100644
--- a/lib/tipc/rust/src/service.rs
+++ b/lib/tipc/rust/src/service.rs
@@ -126,6 +126,31 @@
     pub fn allowed_uuids(self, uuids: &'static [Uuid]) -> Self {
         Self { uuid_allow_list: Some(uuids), ..self }
     }
+
+    /// Get path
+    pub fn get_path(&self) -> &CString {
+        &self.path
+    }
+
+    /// Get message max size
+    pub fn get_msg_max_size(&self) -> u32 {
+        self.msg_max_size
+    }
+
+    /// Get message queue length
+    pub fn get_msg_queue_len(&self) -> u32 {
+        self.msg_queue_len
+    }
+
+    /// Get flags
+    pub fn get_flags(&self) -> u32 {
+        self.flags
+    }
+
+    /// Get allowed UUIDs
+    pub fn get_uuid_allow_list(&self) -> Option<&'static [Uuid]> {
+        self.uuid_allow_list
+    }
 }
 
 impl TryClone for PortCfg {