Struct zbus::blocking::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>
pub fn destination<D>(self, destination: D) -> Result<Self>
Set the proxy destination address.
sourcepub fn cache_properties(self, cache: CacheProperties) -> Self
pub fn cache_properties(self, cache: CacheProperties) -> Self
Set whether to cache properties.
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.
Trait Implementations§
source§impl<'a, T: Clone> Clone for ProxyBuilder<'a, T>
impl<'a, T: Clone> Clone for ProxyBuilder<'a, T>
source§fn clone(&self) -> ProxyBuilder<'a, T>
fn clone(&self) -> ProxyBuilder<'a, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, T> Freeze for ProxyBuilder<'a, T>
impl<'a, T = ()> !RefUnwindSafe for ProxyBuilder<'a, T>
impl<'a, T> Send for ProxyBuilder<'a, T>where
T: Send,
impl<'a, T> Sync for ProxyBuilder<'a, T>where
T: Sync,
impl<'a, T> Unpin for ProxyBuilder<'a, T>where
T: Unpin,
impl<'a, T = ()> !UnwindSafe for ProxyBuilder<'a, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)