This is my first Rust project so it may not be your issue at all. I have attached my cargo.toml Cargo.toml.txt and cargo.lock Cargo.lock.txt files. I'm unable to create a Duration as required for the timeout when requesting a continuous move:
Creating a Duration:
let timeout: xsd_types::types::duration::Duration = xsd_types::types::duration::Duration::from_str("PT30S").unwrap();
expected struct xsd_types::types::duration::Duration, found struct xsd_types::types::Duration
note: perhaps two different versions of crate xsd_types are being used?rustc(E0308)
ptz_actor.rs(389, 35): expected struct xsd_types::types::duration::Duration, found struct xsd_types::types::Duration
let timeout: xsd_types::types::duration::Duration = xsd_types::types::duration::Duration::from_str(" ").unwrap();
Unfortunately some of our cameras are not responding within the default timeout so I'm looking to increase the timeout. Thank you for providing this library.
HI all,
This is my first Rust project so it may not be your issue at all. I have attached my cargo.toml Cargo.toml.txt and cargo.lock Cargo.lock.txt files. I'm unable to create a Duration as required for the timeout when requesting a continuous move:
Creating a Duration:
Using it in a continuous_move:
This is the error I received:
mismatched types
expected struct
xsd_types::types::duration::Duration
, found structxsd_types::types::Duration
note: perhaps two different versions of crate
xsd_types
are being used?rustc(E0308) ptz_actor.rs(389, 35): expected structxsd_types::types::duration::Duration
, found structxsd_types::types::Duration
let timeout: xsd_types::types::duration::Duration = xsd_types::types::duration::Duration::from_str(" ").unwrap();
Unfortunately some of our cameras are not responding within the default timeout so I'm looking to increase the timeout. Thank you for providing this library.
-John