Struct axol::ServerBuilder
source · pub struct ServerBuilder<I> { /* private fields */ }Expand description
Builder for Server.
Implementations§
source§impl<I> ServerBuilder<I>
impl<I> ServerBuilder<I>
source§impl ServerBuilder<AddrIncoming>
impl ServerBuilder<AddrIncoming>
pub fn bind(self, addr: SocketAddr) -> Result<Self, HyperError>
source§impl ServerBuilder<TlsIncoming>
impl ServerBuilder<TlsIncoming>
pub fn bind_with_tls( self, addr: SocketAddr, tls_config: ServerConfig ) -> Result<ServerBuilder<AcceptWrapper<impl Stream<Item = Result<TlsStream<AddrStream>, Error>>>>, HyperError>
Trait Implementations§
Auto Trait Implementations§
impl<I> !RefUnwindSafe for ServerBuilder<I>
impl<I> Send for ServerBuilder<I>where I: Send,
impl<I> Sync for ServerBuilder<I>where I: Sync,
impl<I> Unpin for ServerBuilder<I>where I: Unpin,
impl<I> !UnwindSafe for ServerBuilder<I>
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