Struct mas_listener::server::Server
source · pub struct Server<S> { /* private fields */ }
Implementations§
source§impl<S> Server<S>
impl<S> Server<S>
sourcepub fn try_new<L>(listener: L, service: S) -> Result<Self, L::Error>where
L: TryInto<UnixOrTcpListener>,
pub fn try_new<L>(listener: L, service: S) -> Result<Self, L::Error>where
L: TryInto<UnixOrTcpListener>,
pub fn new(listener: impl Into<UnixOrTcpListener>, service: S) -> Self
pub const fn with_proxy(self) -> Self
pub fn with_tls(self, config: Arc<ServerConfig>) -> Self
Auto Trait Implementations§
impl<S> !Freeze for Server<S>
impl<S> !RefUnwindSafe for Server<S>
impl<S> Send for Server<S>where
S: Send,
impl<S> Sync for Server<S>where
S: Sync,
impl<S> Unpin for Server<S>where
S: Unpin,
impl<S> !UnwindSafe for Server<S>
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