pub struct HyperServer {
pub layer: Option<SmcpServerLayer>,
pub addr: SocketAddr,
}Expand description
A Hyper-based SMCP server
Fields§
§layer: Option<SmcpServerLayer>§addr: SocketAddrImplementations§
Source§impl HyperServer
impl HyperServer
Sourcepub fn with_layer(self, layer: SmcpServerLayer) -> Self
pub fn with_layer(self, layer: SmcpServerLayer) -> Self
Set the SMCP server layer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HyperServer
impl !RefUnwindSafe for HyperServer
impl Send for HyperServer
impl Sync for HyperServer
impl Unpin for HyperServer
impl !UnwindSafe for HyperServer
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