async fn strict_echo(
    args: Option<WampArgs>,
    kwargs: Option<WampKwArgs>,
) -> Result<(Option<WampArgs>, Option<WampKwArgs>), WampError> {
    println!("peer.strict_echo raw input {:?} {:?}", args, kwargs);

    let valid_args: Option<MyArgs> = args.map(wamp_async::try_from_args).transpose()?;
    let valid_kwargs: Option<MyKwArgs> = kwargs.map(wamp_async::try_from_kwargs).transpose()?;
    println!(
        "peer.strict_echo deserialized input {:?} {:?}",
        valid_args, valid_kwargs
    );

    let _ = RPC_CALL_COUNT.fetch_add(1, Ordering::Relaxed);

    Ok((
        valid_args.map(wamp_async::try_into_args).transpose()?,
        valid_kwargs.map(wamp_async::try_into_kwargs).transpose()?,
    ))
}
// Validate structure and return the rpc arguments
Validate structure and return the rpc arguments
Validate structure and return the rpc arguments
async fn strict_echo(
    args: Option<WampArgs>,
    kwargs: Option<WampKwArgs>,
) -> Result<(Option<WampArgs>, Option<WampKwArgs>), WampError> {
    println!("peer.strict_echo raw input {:?} {:?}", args, kwargs);
    let valid_args: Option<MyArgs> = args.map(wamp_async::try_from_args).transpose()?;
    let valid_kwargs: Option<MyKwArgs> = kwargs.map(wamp_async::try_from_kwargs).transpose()?;
    println!(
        "peer.strict_echo deserialized input {:?} {:?}",
        valid_args, valid_kwargs
    );
    let _ = RPC_CALL_COUNT.fetch_add(1, Ordering::Relaxed);
    Ok((
        valid_args.map(wamp_async::try_into_args).transpose()?,
        valid_kwargs.map(wamp_async::try_into_kwargs).transpose()?,
    ))
}
async fn strict_echo ( args : Option < WampArgs > , kwargs : Option < WampKwArgs > , ) -> Result < ( Option < WampArgs > , Option < WampKwArgs > ) , WampError > { println ! ( " " args kwargs ) ; let valid_args : Option < MyArgs > = args . map ( wamp_async :: try_from_args ) . transpose ( ) ? ; let valid_kwargs : Option < MyKwArgs > = kwargs . map ( wamp_async :: try_from_kwargs ) . transpose ( ) ? ; println ! ( " " valid_args valid_kwargs ) ; let _ = RPC_CALL_COUNT . fetch_add ( 1 , Ordering :: Relaxed ) ; Ok ( ( valid_args . map ( wamp_async :: try_into_args ) . transpose ( ) ? , valid_kwargs . map ( wamp_async :: try_into_kwargs ) . transpose ( ) ? , ) ) }
Validate structure and return the rpc arguments
Validate structure and return the rpc arguments
args
Option<WampArgs>
kwargs
Option<WampKwArgs>