Skip to content

Commit

Permalink
Merge pull request dbus2#588 from bilelmoussaoui/bilelmoussaoui/zb-bl…
Browse files Browse the repository at this point in the history
…ocking

zb: Implement ProxyDefault for blocking::Proxy
  • Loading branch information
zeenix authored Feb 12, 2024
2 parents 25876f3 + a1411b5 commit d4438dc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion zbus/src/blocking/proxy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ use zbus_names::{BusName, InterfaceName, MemberName, UniqueName};
use zvariant::{ObjectPath, OwnedValue, Value};

use crate::{
blocking::Connection, message::Message, proxy::MethodFlags, utils::block_on, Error, Result,
blocking::Connection,
message::Message,
proxy::{MethodFlags, ProxyDefault},
utils::block_on,
Error, Result,
};

use crate::fdo;
Expand Down Expand Up @@ -355,6 +359,12 @@ impl<'a> Proxy<'a> {
}
}

impl ProxyDefault for Proxy<'_> {
const INTERFACE: Option<&'static str> = None;
const DESTINATION: Option<&'static str> = None;
const PATH: Option<&'static str> = None;
}

impl<'a> std::convert::AsRef<Proxy<'a>> for Proxy<'a> {
fn as_ref(&self) -> &Proxy<'a> {
self
Expand Down

0 comments on commit d4438dc

Please sign in to comment.