We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c0bdac commit 14fb973Copy full SHA for 14fb973
src/sys/socket/sockopt.rs
@@ -1697,12 +1697,14 @@ impl<'a> Set<'a, OsString> for SetOsString<'a> {
1697
1698
/// Getter for a `CString` value.
1699
#[cfg(apple_targets)]
1700
+#[cfg(feature = "net")]
1701
struct GetCString<T: AsMut<[u8]>> {
1702
len: socklen_t,
1703
val: MaybeUninit<T>,
1704
}
1705
1706
1707
1708
impl<T: AsMut<[u8]>> Get<CString> for GetCString<T> {
1709
fn uninit() -> Self {
1710
GetCString {
0 commit comments