pub fn listener_name(name: &str) -> Result<Socket, Error> {
    debug!("Finding socket for name: {}", name);
    listeners_name(name).and_then(|s| {
        s.into_iter()
            .next()
            .ok_or_else(|| Error::from(ErrorKind::NotFound))
    })
}
/// Returns the first listener for a file descriptor name.
Returns the first listener for a file descriptor name.
Returns the first listener for a file descriptor name .
pub fn listener_name(name: &str) -> Result<Socket, Error> {
    debug!("Finding socket for name: {}", name);
    listeners_name(name).and_then(|s| {
        s.into_iter()
            .next()
            .ok_or_else(|| Error::from(ErrorKind::NotFound))
    })
}
pub fn listener_name ( name : & str ) -> Result < Socket , Error > { debug ! ( " " name ) ; listeners_name ( name ) . and_then ( | s | { s . into_iter ( ) . next ( ) . ok_or_else ( | | Error :: from ( ErrorKind :: NotFound ) ) } ) }
Returns the first listener for a file descriptor name.
Returns the first listener for a file descriptor name .
name
&str
name
&str