TryInto<ObjectPath> in dbus_proxy is problematic
This makes the api expecting something like a str representation of an ObjectPath and can't take an ObjectPath anymore
affected functions
pub fn new_for(
conn: &#connection,
destination: &'c str,
path: impl std::convert::TryInto<::#zbus::export::zvariant::ObjectPath<'c>, Error = ::#zbus::export::zvariant::Error>,
) -> ::#zbus::Result<Self> {
Ok(Self(#proxy_struct::new(
conn,
destination,
path,
#name,
)?))
}
/// Same as `new_for` but takes ownership of the passed arguments.
pub fn new_for_owned(
conn: #connection,
destination: String,
path: impl std::convert::TryInto<::#zbus::export::zvariant::ObjectPath<'static>, Error = ::#zbus::export::zvariant::Error>,
) -> ::#zbus::Result<Self> {
Ok(Self(#proxy_struct::new_owned(
conn,
destination,
path,
#name.to_owned(),
)?))
}
/// Creates a new proxy for the given `path`.
pub fn new_for_path(
conn: &#connection,
path: impl std::convert::TryInto<::#zbus::export::zvariant::ObjectPath<'c>, Error = ::#zbus::export::zvariant::Error>,
) -> ::#zbus::Result<Self> {
Ok(Self(#proxy_struct::new(
conn,
#default_service,
path,
#name,
)?))
}
/// Same as `new_for_path` but takes ownership of the passed arguments.
pub fn new_for_owned_path(
conn: #connection,
path: impl std::convert::TryInto<::#zbus::export::zvariant::ObjectPath<'static>, Error = ::#zbus::export::zvariant::Error>,
) -> ::#zbus::Result<Self> {
Ok(Self(#proxy_struct::new_owned(
conn,
#default_service.to_owned(),
path,
#name.to_owned(),
)?))
}