fn check_misbehaviour(
        &mut self,
        update_event: UpdateClient,
        client_state: AnyClientState,
        reply_to: ReplyTo<Option<AnyMisbehaviour>>,
    ) -> Result<(), Error> {
        let misbehaviour = self
            .light_client
            .check_misbehaviour(update_event, &client_state);

        reply_to
            .send(misbehaviour)
            .map_err(|e| Kind::Channel.context(e))?;

        Ok(())
    }
/// Constructs AnyMisbehaviour for the update event
Constructs AnyMisbehaviour for the update event
Constructs AnyMisbehaviour for the update event
fn check_misbehaviour(
        &mut self,
        update_event: UpdateClient,
        client_state: AnyClientState,
        reply_to: ReplyTo<Option<AnyMisbehaviour>>,
    ) -> Result<(), Error> {
        let misbehaviour = self
            .light_client
            .check_misbehaviour(update_event, &client_state);
        reply_to
            .send(misbehaviour)
            .map_err(|e| Kind::Channel.context(e))?;
        Ok(())
    }
fn check_misbehaviour ( & mut self , update_event : UpdateClient , client_state : AnyClientState , reply_to : ReplyTo < Option < AnyMisbehaviour > > , ) -> Result < ( ) , Error > { let misbehaviour = self . light_client . check_misbehaviour ( update_event , & client_state ) ; reply_to . send ( misbehaviour ) . map_err ( | e | Kind :: Channel . context ( e ) ) ? ; Ok ( ( ) ) }
Constructs AnyMisbehaviour for the update event
Constructs AnyMisbehaviour for the update event
&mut self
update_event
UpdateClient
client_state
AnyClientState
reply_to
ReplyTo<Option<AnyMisbehaviour>>
&mut self
update_event
UpdateClient
client_state
AnyClientState
reply_to
ReplyTo<Option<AnyMisbehaviour>>