pub struct ConfigurationBuilder { /* private fields */ }
Implementations§
Source§impl ConfigurationBuilder
impl ConfigurationBuilder
pub fn new() -> Self
pub fn build(self) -> ServerResult<Configuration>
Source§impl ConfigurationBuilder
impl ConfigurationBuilder
pub fn with_endpoint(self, _endpoint: Endpoint) -> Self
pub fn with_endpoint_address(self, _address: EndpointAddress) -> Self
pub fn with_endpoint_socket_address( self, _address: impl Into<SocketAddr>, ) -> Self
pub fn with_endpoint_socket_address_parse( self, _address: &(impl ToSocketAddrs + ?Sized), ) -> ServerResult<Self>
pub fn with_endpoint_descriptor(self, _descriptor: u32) -> Self
pub fn with_endpoint_protocol(self, _protocol: EndpointProtocol) -> Self
pub fn with_endpoint_security(self, _security: EndpointSecurity) -> Self
Source§impl ConfigurationBuilder
impl ConfigurationBuilder
pub fn with_endpoint_certificate_rustls( self, _certificate: RustTlsCertificate, ) -> Self
pub fn with_endpoint_certificate_rustls_from_pem_file( self, _path: impl AsRef<Path>, ) -> ServerResult<Self>
pub fn with_endpoint_certificate_rustls_from_pem_data( self, _data: impl AsRef<[u8]>, ) -> ServerResult<Self>
Source§impl ConfigurationBuilder
impl ConfigurationBuilder
pub fn with_handler<H, F, RB>(self, _handler: H) -> Self
pub fn with_handler_fn_sync<I, C, RB>(self, _handler: I) -> Self
pub fn with_handler_fn_async<I, C, F, RB>(self, _handler: I) -> Self
pub fn with_handler_dyn<H>(self, _handler: H) -> Selfwhere
H: HandlerDyn,
pub fn with_handler_arc<I>(self, _handler: I) -> Selfwhere
I: Into<HandlerDynArc>,
Source§impl ConfigurationBuilder
impl ConfigurationBuilder
pub fn with_route<'a, P, H, F, RB>(self, _paths: P, _handler: H) -> Self
pub fn with_route_fn_sync<'a, P, I, C, RB>(self, _paths: P, _handler: I) -> Self
pub fn with_route_fn_async<'a, P, I, C, F, RB>( self, _paths: P, _handler: I, ) -> Self
pub fn with_route_dyn<'a, P, H>(self, _paths: P, _handler: H) -> Self
pub fn with_route_arc<'a, P, I>(self, _paths: P, _handler: I) -> Self
pub fn with_routes(self, _routes: impl Into<Routes>) -> Self
Auto Trait Implementations§
impl Freeze for ConfigurationBuilder
impl !RefUnwindSafe for ConfigurationBuilder
impl Send for ConfigurationBuilder
impl Sync for ConfigurationBuilder
impl Unpin for ConfigurationBuilder
impl !UnwindSafe for ConfigurationBuilder
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