pub enum ClientMessage {
Show 16 variants
Authenticate {
tenant_id: String,
client_version: String,
credentials: AuthCredentials,
},
CreateTenant {
tenant_id: String,
tenant_name: String,
},
DeleteTenant {
tenant_id: String,
},
CreateService {
tenant_id: String,
service_name: String,
},
GetService {
tenant_id: String,
service_name: String,
},
DeleteService {
tenant_id: String,
service_name: String,
},
AllocateVariable {
service_id: String,
variable_name: String,
initial_data: Vec<u8>,
},
ReadVariable {
service_id: String,
variable_name: String,
},
WriteVariable {
service_id: String,
variable_name: String,
data: Vec<u8>,
},
DeallocateVariable {
service_id: String,
variable_name: String,
},
Subscribe {
service_id: String,
variable_name: String,
},
Unsubscribe {
service_id: String,
variable_name: String,
},
Heartbeat {
client_id: String,
},
Disconnect {
client_id: String,
},
GetServiceFilePath {
tenant_id: String,
service_name: String,
},
ReportVariableChanges {
service_id: String,
changed_variables: Vec<String>,
new_values: Vec<(String, Vec<u8>)>,
},
}Expand description
Messages sent from client to server
Variants§
Authenticate
Authenticate with a tenant
CreateTenant
Create a new tenant (admin operation)
DeleteTenant
Delete a tenant (admin operation)
CreateService
Create a new service
GetService
Get existing service (errors if not found)
DeleteService
Delete a service
AllocateVariable
Allocate a variable in a service
ReadVariable
Read variable data
WriteVariable
Write variable data
DeallocateVariable
Deallocate a variable
Subscribe
Subscribe to variable changes
Unsubscribe
Unsubscribe from variable changes
Heartbeat
Heartbeat/keepalive
Disconnect
Disconnect gracefully
GetServiceFilePath
Request service file path for memory mapping (local clients)
ReportVariableChanges
Notify server of variable changes detected locally
Trait Implementations§
Source§impl Clone for ClientMessage
impl Clone for ClientMessage
Source§fn clone(&self) -> ClientMessage
fn clone(&self) -> ClientMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientMessage
impl Debug for ClientMessage
Source§impl<'de> Deserialize<'de> for ClientMessage
impl<'de> Deserialize<'de> for ClientMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientMessage
impl RefUnwindSafe for ClientMessage
impl Send for ClientMessage
impl Sync for ClientMessage
impl Unpin for ClientMessage
impl UnsafeUnpin for ClientMessage
impl UnwindSafe for ClientMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more