pub struct HyperServerBuilder { /* private fields */ }Expand description
Builder for creating and configuring a HyperServer
Implementations§
Source§impl HyperServerBuilder
impl HyperServerBuilder
Sourcepub fn with_layer(self, layer: SmcpServerLayer) -> Self
pub fn with_layer(self, layer: SmcpServerLayer) -> Self
Set the SMCP server layer
Sourcepub fn with_addr(self, addr: SocketAddr) -> Self
pub fn with_addr(self, addr: SocketAddr) -> Self
Set the server address
Sourcepub fn build(self) -> HyperServer
pub fn build(self) -> HyperServer
Build the HyperServer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HyperServerBuilder
impl !RefUnwindSafe for HyperServerBuilder
impl Send for HyperServerBuilder
impl Sync for HyperServerBuilder
impl Unpin for HyperServerBuilder
impl UnsafeUnpin for HyperServerBuilder
impl !UnwindSafe for HyperServerBuilder
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