pub fn listeners_name(name: &str) -> Result<Vec<Socket>, Error> {
    debug!("Finding sockets for name: {}", name);
    listen_fds_with_names(false, LISTEN_FDS_START).and_then(|s| {
        s.get(name)
            .cloned()
            .ok_or_else(|| Error::from(ErrorKind::NotFound))
    })
}
/// Returns all of the listeners for a file descriptor name.
Returns all of the listeners for a file descriptor name.
Returns all of the listeners for a file descriptor name .
pub fn listeners_name(name: &str) -> Result<Vec<Socket>, Error> {
    debug!("Finding sockets for name: {}", name);
    listen_fds_with_names(false, LISTEN_FDS_START).and_then(|s| {
        s.get(name)
            .cloned()
            .ok_or_else(|| Error::from(ErrorKind::NotFound))
    })
}
pub fn listeners_name ( name : & str ) -> Result < Vec < Socket > , Error > { debug ! ( " " name ) ; listen_fds_with_names ( false , LISTEN_FDS_START ) . and_then ( | s | { s . get ( name ) . cloned ( ) . ok_or_else ( | | Error :: from ( ErrorKind :: NotFound ) ) } ) }
Returns all of the listeners for a file descriptor name.
Returns all of the listeners for a file descriptor name .
name
&str
name
&str