# Safety To use this safely, the caller must guarantee that the input fds are all valid.
(&mut self, mut fds: Vec<i32>)
| 3560 | /// To use this safely, the caller must guarantee that the input |
| 3561 | /// fds are all valid. |
| 3562 | pub unsafe fn add_preserved_fds(&mut self, mut fds: Vec<i32>) { |
| 3563 | if fds.is_empty() { |
| 3564 | return; |
| 3565 | } |
| 3566 | |
| 3567 | if let Some(preserved_fds) = &self.preserved_fds { |
| 3568 | fds.append(&mut preserved_fds.clone()); |
| 3569 | } |
| 3570 | |
| 3571 | self.preserved_fds = Some(fds); |
| 3572 | } |
| 3573 | |
| 3574 | #[cfg(feature = "tdx")] |
| 3575 | pub fn is_tdx_enabled(&self) -> bool { |