pub fn pop_input(&mut self) -> Option<CanisterInputMessage> {
        // Return the next inter-canister message if one exists.
        if let Some(msg) = self.pop_canister_input() {
            return Some(match msg {
                RequestOrResponse::Request(msg) => CanisterInputMessage::Request(msg),
                RequestOrResponse::Response(msg) => CanisterInputMessage::Response(msg),
            });
        }
        self.pop_ingress().map(CanisterInputMessage::Ingress)
    }
/// Extracts the next inter-canister or ingress message (in that order).
/// If no inter-canister messages are available in the induction pool, we
/// pop the next ingress message.
Extracts the next inter-canister or ingress message (in that order).
If no inter-canister messages are available in the induction pool, we
pop the next ingress message.
Extracts the next inter - canister or ingress message ( in that order ) . If no inter - canister messages are available in the induction pool we pop the next ingress message .
pub fn pop_input(&mut self) -> Option<CanisterInputMessage> {
        // Return the next inter-canister message if one exists.
        if let Some(msg) = self.pop_canister_input() {
            return Some(match msg {
                RequestOrResponse::Request(msg) => CanisterInputMessage::Request(msg),
                RequestOrResponse::Response(msg) => CanisterInputMessage::Response(msg),
            });
        }
        self.pop_ingress().map(CanisterInputMessage::Ingress)
    }
pub fn pop_input ( & mut self ) -> Option < CanisterInputMessage > { // Return the next inter-canister message if one exists. if let Some ( msg ) = self . pop_canister_input ( ) { return Some ( match msg { RequestOrResponse :: Request ( msg ) => CanisterInputMessage :: Request ( msg ) , RequestOrResponse :: Response ( msg ) => CanisterInputMessage :: Response ( msg ) , } ) ; } self . pop_ingress ( ) . map ( CanisterInputMessage :: Ingress ) }
Extracts the next inter-canister or ingress message (in that order).
Extracts the next inter - canister or ingress message ( in that order ) .
&mut self
&mut self