pub struct Server<H: ServerProtocol, T: Transport = Tcp> { /* private fields */ }Implementations§
Source§impl<H: ServerProtocol, T: Transport> Server<H, T>
impl<H: ServerProtocol, T: Transport> Server<H, T>
pub fn protocol(&self) -> &H
pub fn protocol_mut(&mut self) -> &mut H
pub fn listener_fd(&self) -> &FdHandle
Trait Implementations§
Source§impl<H: ServerProtocol, T: Transport, B: PoolDriver> Direction<B> for Server<H, T>
impl<H: ServerProtocol, T: Transport, B: PoolDriver> Direction<B> for Server<H, T>
type Transport = T
type SlotUser = ServerSlotState<H>
type CodecLayer = <H as ServerProtocol>::CodecLayer
fn has_pending(&self) -> bool
fn tick( &mut self, core: &mut PoolCore<Self::Transport, Self::CodecLayer, Self::SlotUser, B>, driver: &mut B::Driver, )
fn on_accept_event(&mut self, token: B::Token, result: i32, more: bool)
Auto Trait Implementations§
impl<H, T> Freeze for Server<H, T>where
H: Freeze,
impl<H, T> RefUnwindSafe for Server<H, T>where
H: RefUnwindSafe,
T: RefUnwindSafe,
impl<H, T> Send for Server<H, T>
impl<H, T> Sync for Server<H, T>
impl<H, T> Unpin for Server<H, T>
impl<H, T> UnsafeUnpin for Server<H, T>where
H: UnsafeUnpin,
impl<H, T> UnwindSafe for Server<H, T>where
H: UnwindSafe,
T: UnwindSafe,
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