pub struct Builder<'a, T = ()> { /* private fields */ }
Expand description
Builder for proxies.
Implementations§
Source§impl<'a, T> Builder<'a, T>
impl<'a, T> Builder<'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 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> Builder<'a, T>where
T: ProxyDefault,
impl<'a, T> Builder<'a, T>where
T: ProxyDefault,
Sourcepub fn new(conn: &Connection) -> Self
pub fn new(conn: &Connection) -> Self
Create a new Builder
for the given connection.
Sourcepub fn new_bare(conn: &Connection) -> Self
👎Deprecated since 4.0.0: use Builder::new
instead, which is now generic over the proxy type
pub fn new_bare(conn: &Connection) -> Self
Builder::new
instead, which is now generic over the proxy typeCreate a new Builder
for the given connection.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Builder<'a, T>
impl<'a, T = ()> !RefUnwindSafe for Builder<'a, T>
impl<'a, T> Send for Builder<'a, T>where
T: Send,
impl<'a, T> Sync for Builder<'a, T>where
T: Sync,
impl<'a, T> Unpin for Builder<'a, T>where
T: Unpin,
impl<'a, T = ()> !UnwindSafe for Builder<'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