pub struct ApplicationBuilder { /* private fields */ }Expand description
Builder for application objects with minimal ceremony.
Implementations§
Source§impl ApplicationBuilder
impl ApplicationBuilder
pub fn new(name: &str, category: &str) -> Result<Self, String>
Sourcepub fn transport(self, descriptor: &str) -> Result<Self, String>
pub fn transport(self, descriptor: &str) -> Result<Self, String>
Append a transport definition by parsing a descriptor like "tcp/443" or "udp/53".
Sourcepub fn transport_value(self, svc: TransportService) -> Self
pub fn transport_value(self, svc: TransportService) -> Self
Append a pre-built transport.
pub fn dns_suffix<S: Into<String>>(self, suffix: S) -> Self
pub fn tls_sni_suffix<S: Into<String>>(self, suffix: S) -> Self
pub fn http_host<S: Into<String>>(self, host: S) -> Self
pub fn build(self) -> ApplicationObj
Trait Implementations§
Source§impl Clone for ApplicationBuilder
impl Clone for ApplicationBuilder
Source§fn clone(&self) -> ApplicationBuilder
fn clone(&self) -> ApplicationBuilder
Returns a duplicate 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 Freeze for ApplicationBuilder
impl RefUnwindSafe for ApplicationBuilder
impl Send for ApplicationBuilder
impl Sync for ApplicationBuilder
impl Unpin for ApplicationBuilder
impl UnwindSafe for ApplicationBuilder
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