You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to write some logic to issue a paged query using a prepared statement, however the type that exec returns - ExecPager isn't exported from cdrs_tokio::cluster. The struct is marked as public, however it doesn't appear to offer any interface to convert it into a type that I do have access to. My primary reason for wanting access to the type is so that I can return it as the result of a helper function. https://docs.rs/cdrs-tokio/3.0.0/src/cdrs_tokio/cluster/pager.rs.html#174
But without ExecPager I'm not able to type the return type of the function? unless there's a trait I can use in it's place?
As an aside (apologies for hijacking the issue) I notice there's no way of providing parameters to a prepared query when using this pagination interface, is there a specific reason for this, or has the feature just not been implemented yet?
Hey,
I was trying to write some logic to issue a paged query using a prepared statement, however the type that
exec
returns -ExecPager
isn't exported fromcdrs_tokio::cluster
. The struct is marked as public, however it doesn't appear to offer any interface to convert it into a type that I do have access to. My primary reason for wanting access to the type is so that I can return it as the result of a helper function. https://docs.rs/cdrs-tokio/3.0.0/src/cdrs_tokio/cluster/pager.rs.html#174Am I just misunderstanding the API? or is this a quick fix?
The text was updated successfully, but these errors were encountered: