Lines Matching refs:SafeDescriptor
55 pub struct SafeDescriptor { struct
62 impl PartialEq for SafeDescriptor { argument
87 impl Drop for SafeDescriptor { implementation
93 impl AsRawDescriptor for SafeDescriptor { implementation
99 impl IntoRawDescriptor for SafeDescriptor { implementation
107 impl FromRawDescriptor for SafeDescriptor { implementation
109 SafeDescriptor { descriptor } in from_raw_descriptor()
113 impl AsRawFd for SafeDescriptor { implementation
119 impl TryFrom<&dyn AsRawFd> for SafeDescriptor { implementation
123 Ok(SafeDescriptor { in try_from()
129 impl SafeDescriptor { implementation
132 pub fn try_clone(&self) -> Result<SafeDescriptor> { in try_clone() argument
138 Ok(SafeDescriptor { descriptor }) in try_clone()
143 impl From<SafeDescriptor> for File {
144 fn from(s: SafeDescriptor) -> File { in from()
150 impl From<File> for SafeDescriptor { implementation
151 fn from(f: File) -> SafeDescriptor { in from() argument
153 unsafe { SafeDescriptor::from_raw_descriptor(f.into_raw_descriptor()) } in from()
266 let descriptor = unsafe { SafeDescriptor::from_raw_descriptor(ret) }; in clone_equality()
279 let another = unsafe { SafeDescriptor::from_raw_descriptor(ret) }; in clone_equality()