1 // Copyright 2022 The ChromiumOS Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 use std::os::unix::net::UnixStream; 6 7 use crate::descriptor::AsRawDescriptor; 8 use crate::CloseNotifier; 9 use crate::ReadNotifier; 10 11 impl ReadNotifier for UnixStream { get_read_notifier(&self) -> &dyn AsRawDescriptor12 fn get_read_notifier(&self) -> &dyn AsRawDescriptor { 13 self 14 } 15 } 16 17 impl CloseNotifier for UnixStream { get_close_notifier(&self) -> &dyn AsRawDescriptor18 fn get_close_notifier(&self) -> &dyn AsRawDescriptor { 19 self 20 } 21 } 22