Struct zbus::ProxyBuilder
source · pub struct ProxyBuilder<'a, T = ()> { /* private fields */ }
Expand description
Builder for proxies.
Implementations§
source§impl<'a, T> ProxyBuilder<'a, T>
impl<'a, T> ProxyBuilder<'a, T>
sourcepub fn new_bare(conn: &Connection) -> Self
pub fn new_bare(conn: &Connection) -> Self
Create a new ProxyBuilder
for the given connection.
source§impl<'a, T> ProxyBuilder<'a, T>
impl<'a, T> ProxyBuilder<'a, T>
sourcepub fn destination<D>(self, destination: D) -> Result<Self>where
D: TryInto<BusName<'a>>,
D::Error: Into<Error>,
pub fn destination<D>(self, destination: D) -> Result<Self>where D: TryInto<BusName<'a>>, D::Error: Into<Error>,
Set the proxy destination address.
sourcepub fn path<P>(self, path: P) -> Result<Self>where
P: TryInto<ObjectPath<'a>>,
P::Error: Into<Error>,
pub fn path<P>(self, path: P) -> Result<Self>where P: TryInto<ObjectPath<'a>>, P::Error: Into<Error>,
Set the proxy path.
sourcepub fn interface<I>(self, interface: I) -> Result<Self>where
I: TryInto<InterfaceName<'a>>,
I::Error: Into<Error>,
pub fn interface<I>(self, interface: I) -> Result<Self>where I: TryInto<InterfaceName<'a>>, I::Error: Into<Error>,
Set the proxy interface.
sourcepub fn cache_properties(self, cache: CacheProperties) -> Self
pub fn cache_properties(self, cache: CacheProperties) -> Self
Set the properties caching mode.
sourcepub fn uncached_properties(self, properties: &[&'a str]) -> Self
pub fn uncached_properties(self, properties: &[&'a str]) -> Self
Specify a set of properties (by name) which should be excluded from caching.
source§impl<'a, T> ProxyBuilder<'a, T>where
T: ProxyDefault,
impl<'a, T> ProxyBuilder<'a, T>where T: ProxyDefault,
sourcepub fn new(conn: &Connection) -> Self
pub fn new(conn: &Connection) -> Self
Create a new ProxyBuilder
for the given connection.