We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
zeroed
io_uring::open_at
1 parent d22bc1e commit fa5c3dfCopy full SHA for fa5c3df
src/io_uring/mod.rs
@@ -1797,6 +1797,17 @@ pub struct open_how {
1797
pub resolve: ResolveFlags,
1798
}
1799
1800
+impl open_how {
1801
+ /// Create a zero-initialized `Self`.
1802
+ pub const fn zeroed() -> Self {
1803
+ Self {
1804
+ flags: 0,
1805
+ mode: 0,
1806
+ resolve: ResolveFlags::empty(),
1807
+ }
1808
1809
+}
1810
+
1811
#[allow(missing_docs)]
1812
#[repr(C)]
1813
#[derive(Debug, Copy, Clone, Default)]
0 commit comments