1 2 3 4 5 6 7 8 9 10 11 12
use crate::integrations::*; use crate::types::error::Error; use crate::types::*; /// Retrieve sockets information as a vector. /// Short-circuits on any error along the way. pub fn get_sockets_info( af_flags: AddressFamilyFlags, proto_flags: ProtocolFlags, ) -> Result<Vec<SocketInfo>, Error> { iterate_sockets_info(af_flags, proto_flags)?.collect() }