[][src]Struct new_home_application::net::tcp_server::TcpServerImpl

pub struct TcpServerImpl { /* fields omitted */ }

Contains all the required logic to read and get data from connected Tcp Clients

Methods

impl TcpServerImpl[src]

pub fn from_application(app: ApplicationConfig) -> Self[src]

Creates the application server from an application the Application is a struct that contains information about the application's author etc. and contains its configuration

pub fn new(port: i16, ip: Option<String>) -> Self[src]

Creates a new application server instance IP can be a valid IPv4 (X.X.X.X) or an IPv6 in brackets ([X:X:X::X]) The IP is optional, the default value is [::] and with that its listening on all IPv6 interfaces (dependent on the system configuration [::] includes all IPv4 interfaces as well)

Trait Implementations

impl TcpServer for TcpServerImpl[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.