pub enum TcpClientMessage {
Login {
password: String,
user_name: String,
user_role: UserRole,
},
Logout,
Relogin {
user_id: SessionID,
clear_subscriptions: bool,
},
Subscribe {
topic: SubscribeTopic,
update_mode: UpdateMode,
},
Unsubscribe {
topic: SubscribeTopic,
},
ExecuteCommand {
command: String,
response_id: u32,
},
ExecuteImplicitCommand {
command: CliAction,
response_id: u32,
},
RequestEdit(EditableResource),
SubmitEdit {
resource: EditableResource,
new_data: Vec<u8>,
},
DropEditLock(EditableResource),
}Expand description
Represents all valid messages dispatched from a client to the kernel over an active TCP connection.
Variants§
Login
Request to authenticate a new session.
Logout
Request to safely terminate the current session.
Relogin
Request to resume a previous session using an existing token.
Subscribe
Request to listen for state changes on a specific topic.
Unsubscribe
Request to stop receiving updates for a specific topic.
Fields
§
topic: SubscribeTopicExecuteCommand
Submits a raw CLI string for the server to parse and execute.
ExecuteImplicitCommand
Submits a pre-parsed, structured CLI action directly.
RequestEdit(EditableResource)
Requests exclusive editing rights for a specific engine resource.
SubmitEdit
Submits modifications for an exclusively locked resource.
DropEditLock(EditableResource)
Drops the Lock on an exclusively locked resource, giving other Clients the chance to lock it.
Trait Implementations§
Source§impl Debug for TcpClientMessage
impl Debug for TcpClientMessage
Source§impl<'de> Deserialize<'de> for TcpClientMessage
impl<'de> Deserialize<'de> for TcpClientMessage
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 TcpClientMessage
impl RefUnwindSafe for TcpClientMessage
impl Send for TcpClientMessage
impl Sync for TcpClientMessage
impl Unpin for TcpClientMessage
impl UnsafeUnpin for TcpClientMessage
impl UnwindSafe for TcpClientMessage
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