fn send_filtered_logs(&self, log_messages: &mut Vec<&mut LogMessage>) -> ListenerStatus {
        if let Err(e) = self.listener.log_many(&mut log_messages.iter_mut().map(|x| &mut **x)) {
            match e {
                fidl::Error::ClientRead(zx::Status::PEER_CLOSED)
                | fidl::Error::ClientWrite(zx::Status::PEER_CLOSED) => ListenerStatus::Stale,
                e => {
                    eprintln!("Error calling listener: {:?}", e);
                    ListenerStatus::Fine
                }
            }
        } else {
            ListenerStatus::Fine
        }
    }
/// This fn assumes that logs have already been filtered.
This fn assumes that logs have already been filtered.
This fn assumes that logs have already been filtered .
fn send_filtered_logs(&self, log_messages: &mut Vec<&mut LogMessage>) -> ListenerStatus {
        if let Err(e) = self.listener.log_many(&mut log_messages.iter_mut().map(|x| &mut **x)) {
            match e {
                fidl::Error::ClientRead(zx::Status::PEER_CLOSED)
                | fidl::Error::ClientWrite(zx::Status::PEER_CLOSED) => ListenerStatus::Stale,
                e => {
                    eprintln!("Error calling listener: {:?}", e);
                    ListenerStatus::Fine
                }
            }
        } else {
            ListenerStatus::Fine
        }
    }
fn send_filtered_logs ( & self , log_messages : & mut Vec < & mut LogMessage > ) -> ListenerStatus { if let Err ( e ) = self . listener . log_many ( & mut log_messages . iter_mut ( ) . map ( | x | & mut * * x ) ) { match e { fidl :: Error :: ClientRead ( zx :: Status :: PEER_CLOSED ) | fidl :: Error :: ClientWrite ( zx :: Status :: PEER_CLOSED ) => ListenerStatus :: Stale , e => { eprintln ! ( " " e ) ; ListenerStatus :: Fine } } } else { ListenerStatus :: Fine } }
This fn assumes that logs have already been filtered.
This fn assumes that logs have already been filtered .
&self
log_messages
&mut Vec<&mut LogMessage>
&self
log_messages
&mut Vec<&mut LogMessage>