Skip to main content

PhoenixRequestServer

Trait PhoenixRequestServer 

Source
pub trait PhoenixRequestServer {
    type Stream;

    // Required methods
    fn new(hostname: &String, port: u16) -> Self;
    fn accept(&self) -> Self::Stream;
}

Required Associated Types§

Required Methods§

Source

fn new(hostname: &String, port: u16) -> Self

Initialise the Request server

§Parameters
  • hostname : address of the server
  • port : port of the server
§Returns

initialised Request server

Source

fn accept(&self) -> Self::Stream

Accept the connection and get a corresponding stream

§Returns

corresponding stream

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§