pub struct IrohServer<P: Protocol + Debug + Clone + 'static> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<P: Protocol + Debug + Clone + 'static> ProtocolHandler for IrohServer<P>
impl<P: Protocol + Debug + Clone + 'static> ProtocolHandler for IrohServer<P>
Source§async fn accept(&self, connection: Connection) -> Result<(), AcceptError>
async fn accept(&self, connection: Connection) -> Result<(), AcceptError>
Handle an incoming connection. Read more
Auto Trait Implementations§
impl<P> Freeze for IrohServer<P>where
P: Freeze,
impl<P> RefUnwindSafe for IrohServer<P>where
P: RefUnwindSafe,
impl<P> Send for IrohServer<P>
impl<P> Sync for IrohServer<P>
impl<P> Unpin for IrohServer<P>where
P: Unpin,
impl<P> UnwindSafe for IrohServer<P>where
P: 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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<P> DynProtocolHandler for Pwhere
P: ProtocolHandler,
impl<P> DynProtocolHandler for Pwhere
P: ProtocolHandler,
§fn accept(
&self,
connection: Connection,
) -> Pin<Box<dyn Future<Output = Result<(), AcceptError>> + Send + '_>>
fn accept( &self, connection: Connection, ) -> Pin<Box<dyn Future<Output = Result<(), AcceptError>> + Send + '_>>
See [
ProtocolHandler::accept
].