fn once<D>(
            driver: &mut D,
        ) -> JoyConResult<SubCommandReply<StandardInputReport<SubCommandReport<Self>>>>
        where
            Self: std::marker::Sized,
            D: JoyConDriver,
        {
            match driver.send_sub_command(Self::SUB_COMMAND, Self::ARGS.as_ref()) {
                Ok(reply) => {
                    let ok = match reply {
                        SubCommandReply::Checked(reply) => {
                            SubCommandReply::Checked(StandardInputReport::try_from(reply)?)
                        }
                        SubCommandReply::Unchecked => SubCommandReply::Unchecked,
                    };
                    Ok(ok)
                }
                Err(e) => Err(e),
            }
        }
/// The mode remains the same, sending commands and receiving replies.
The mode remains the same, sending commands and receiving replies.
The mode remains the same sending commands and receiving replies .
fn once<D>(
            driver: &mut D,
        ) -> JoyConResult<SubCommandReply<StandardInputReport<SubCommandReport<Self>>>>
        where
            Self: std::marker::Sized,
            D: JoyConDriver,
        {
            match driver.send_sub_command(Self::SUB_COMMAND, Self::ARGS.as_ref()) {
                Ok(reply) => {
                    let ok = match reply {
                        SubCommandReply::Checked(reply) => {
                            SubCommandReply::Checked(StandardInputReport::try_from(reply)?)
                        }
                        SubCommandReply::Unchecked => SubCommandReply::Unchecked,
                    };
                    Ok(ok)
                }
                Err(e) => Err(e),
            }
        }
fn once < D > ( driver : & mut D , ) -> JoyConResult < SubCommandReply < StandardInputReport < SubCommandReport < Self > > > > where Self : std :: marker :: Sized , D : JoyConDriver , { match driver . send_sub_command ( Self :: SUB_COMMAND , Self :: ARGS . as_ref ( ) ) { Ok ( reply ) => { let ok = match reply { SubCommandReply :: Checked ( reply ) => { SubCommandReply :: Checked ( StandardInputReport :: try_from ( reply ) ? ) } SubCommandReply :: Unchecked => SubCommandReply :: Unchecked , } ; Ok ( ok ) } Err ( e ) => Err ( e ) , } }
The mode remains the same, sending commands and receiving replies.
The mode remains the same sending commands and receiving replies .
driver
&mut D
driver
&mut D