Struct zbus::blocking::ProxyBuilder
source · [−]pub struct ProxyBuilder<'a, T = ()>(_);
Expand description
Builder for proxies.
Implementations
sourceimpl<'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.
sourceimpl<'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 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.
sourceimpl<'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
sourceimpl<'a, T: Clone> Clone for ProxyBuilder<'a, T>
impl<'a, T: Clone> Clone for ProxyBuilder<'a, T>
sourcefn clone(&self) -> ProxyBuilder<'a, T>
fn clone(&self) -> ProxyBuilder<'a, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more