[][src]Struct kiss_dc::ServerState

pub struct ServerState { /* fields omitted */ }

Implementations

impl ServerState[src]

Create an isntation of the server that will communicate with the client

pub fn new(ip_v4: &'static str) -> Self[src]

pub fn run_server(
    self,
    message: &'static str,
    identification_string: &'static str,
    leanguage: &'static str
) -> Result<String, Error>
[src]

The function that constitutes the core of the library, sends the code to the client with the given "name" and returns the result.
The first argument is the code you want to send, the second is the identifier ("name") and the language in which the code was written.

pub fn run_server_wasm(
    self,
    identification_string: &'static str,
    file_name: &'static str
) -> Result<String, Error>
[src]

run the file with the name given to the variable file_name with the extension .wasm

pub fn run_server_queue(
    self,
    arguments_vec: &mut Vec<(&str, &str, &str)>
) -> Result<Vec<String>, Error>
[src]

first argument: program code secound argument: device identification string third arguments: program language

pub fn run_server_queue_wasm(
    self,
    arguments_vec: &mut Vec<(&str, &str)>
) -> Result<Vec<String>, Error>
[src]

first argument: device identification string secound argument: name filr with program code

Trait Implementations

impl Clone for ServerState[src]

impl Copy for ServerState[src]

impl Debug for ServerState[src]

impl PartialEq<ServerState> for ServerState[src]

impl PartialOrd<ServerState> for ServerState[src]

impl StructuralPartialEq for ServerState[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> Same<T> for T

type Output = T

Should always be Self

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>,