[−][src]Struct kiss_dc::ServerState
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]
self,
message: &'static str,
identification_string: &'static str,
leanguage: &'static str
) -> Result<String, Error>
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]
self,
identification_string: &'static str,
file_name: &'static str
) -> Result<String, Error>
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]
self,
arguments_vec: &mut Vec<(&str, &str, &str)>
) -> Result<Vec<String>, Error>
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]
self,
arguments_vec: &mut Vec<(&str, &str)>
) -> Result<Vec<String>, Error>
first argument: device identification string secound argument: name filr with program code
Trait Implementations
impl Clone for ServerState
[src]
pub fn clone(&self) -> ServerState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ServerState
[src]
impl Debug for ServerState
[src]
impl PartialEq<ServerState> for ServerState
[src]
pub fn eq(&self, other: &ServerState) -> bool
[src]
pub fn ne(&self, other: &ServerState) -> bool
[src]
impl PartialOrd<ServerState> for ServerState
[src]
pub fn partial_cmp(&self, other: &ServerState) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ServerState) -> bool
[src]
pub fn le(&self, other: &ServerState) -> bool
[src]
pub fn gt(&self, other: &ServerState) -> bool
[src]
pub fn ge(&self, other: &ServerState) -> bool
[src]
impl StructuralPartialEq for ServerState
[src]
Auto Trait Implementations
impl RefUnwindSafe for ServerState
[src]
impl Send for ServerState
[src]
impl Sync for ServerState
[src]
impl Unpin for ServerState
[src]
impl UnwindSafe for ServerState
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,