pub struct IrohServer<P>{ /* private fields */ }
Implementations§
Source§impl<P> IrohServer<P>
impl<P> IrohServer<P>
pub fn new(protocol: P) -> IrohServer<P>
Trait Implementations§
Source§impl<P> Debug for IrohServer<P>
impl<P> Debug for IrohServer<P>
Source§impl<P> ProtocolHandler for IrohServer<P>
impl<P> 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
§fn on_connecting(
&self,
connecting: Connecting,
) -> impl Future<Output = Result<Connection, AcceptError>> + Send
fn on_connecting( &self, connecting: Connecting, ) -> impl Future<Output = Result<Connection, AcceptError>> + Send
Optional interception point to handle the
Connecting
state. Read moreAuto 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