[][src]Struct db::clients::Client

pub struct Client {
    pub uid: i64,
    pub ip: String,
    pub port: i32,
}

representation of raw socket for incoming connection

Fields

uid: i64

unique id for each client

ip: String

ip address where client has connected from

port: i32

port where client has connected from

Methods

impl Client[src]

pub fn new(uid: UID, ip: String, port: i32) -> Self[src]

create new Client

Trait Implementations

impl<'update> AsChangeset for &'update Client[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<uid, &'update i64>, Eq<ip, &'update String>, Eq<port, &'update i32>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for Client[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<uid, i64>, Eq<ip, String>, Eq<port, i32>) as AsChangeset>::Changeset

The update statement this type represents

impl Clone for Client[src]

impl Debug for Client[src]

impl<'de> Deserialize<'de> for Client[src]

impl<'insert> Insertable<table> for Client[src]

type Values = <(Option<Eq<uid, i64>>, Option<Eq<ip, String>>, Option<Eq<port, i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for &'insert Client[src]

type Values = <(Option<Eq<uid, &'insert i64>>, Option<Eq<ip, &'insert String>>, Option<Eq<port, &'insert i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Client where
    (i64, String, i32): Queryable<__ST, __DB>, 
[src]

type Row = <(i64, String, i32) as Queryable<__ST, __DB>>::Row

The Rust type you'd like to map from. Read more

impl Serialize for Client[src]

impl<'insert> UndecoratedInsertRecord<table> for Client[src]

Auto Trait Implementations

impl RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl UnwindSafe for Client

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> IntoSql for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,