pub enum ServerPackets {
Show 82 variants
LoadModule {
id: u128,
path: PathBuf,
},
RemoveModule {
id: u128,
module_id: ModuleId,
},
GetActionsLen {
id: u128,
},
GetActions {
id: u128,
range: Range<usize>,
},
RunAction {
id: u128,
module_id: ModuleId,
name: String,
data: Vec<Type>,
},
GetModulesLen {
id: u128,
},
GetModules {
id: u128,
range: Range<usize>,
},
ModuleGetName {
id: u128,
module_id: ModuleId,
},
ModuleSetName {
id: u128,
module_id: ModuleId,
to: String,
},
ModuleGetDefaultName {
id: u128,
module_id: ModuleId,
},
ModuleGetDesc {
id: u128,
module_id: ModuleId,
},
ModuleSetDesc {
id: u128,
module_id: ModuleId,
to: String,
},
ModuleGetDefaultDesc {
id: u128,
module_id: ModuleId,
},
ModuleGetProxy {
id: u128,
module_id: ModuleId,
},
ModuleSetProxy {
id: u128,
module_id: ModuleId,
to: usize,
},
ModuleGetSettings {
id: u128,
module_id: ModuleId,
},
ModuleSetSettings {
id: u128,
module_id: ModuleId,
to: Data,
},
ModuleGetElementSettings {
id: u128,
module_id: ModuleId,
},
ModuleSetElementSettings {
id: u128,
module_id: ModuleId,
to: Data,
},
ModuleInitLocation {
id: u128,
module_id: ModuleId,
location_id: LocationId,
data: FileOrData,
},
ModuleInitElement {
id: u128,
module_id: ModuleId,
element_id: ElementId,
},
ModuleAcceptUrl {
id: u128,
module_id: ModuleId,
url: String,
},
ModuleAcceptExtension {
id: u128,
module_id: ModuleId,
filename: String,
},
ModuleAcceptedProtocols {
id: u128,
module_id: ModuleId,
},
GetDefaultLocation {
id: u128,
},
LocationGetName {
id: u128,
from: LocationId,
},
LocationSetName {
id: u128,
from: LocationId,
to: String,
},
LocationGetDesc {
id: u128,
from: LocationId,
},
LocationSetDesc {
id: u128,
from: LocationId,
to: String,
},
LocationGetInfo {
id: u128,
from: LocationId,
},
CreateElement {
id: u128,
location_id: LocationId,
name: String,
},
MoveElement {
id: u128,
element_id: ElementId,
location_id: LocationId,
},
DestroyElement {
id: u128,
element_id: ElementId,
},
ElementGetName {
id: u128,
element_id: ElementId,
},
ElementSetName {
id: u128,
element_id: ElementId,
to: String,
},
ElementGetDesc {
id: u128,
element_id: ElementId,
},
ElementSetDesc {
id: u128,
element_id: ElementId,
to: String,
},
ElementGetMeta {
id: u128,
element_id: ElementId,
},
ElementSetMeta {
id: u128,
element_id: ElementId,
to: String,
},
ElementGetUrl {
id: u128,
element_id: ElementId,
},
ElementSetUrl {
id: u128,
element_id: ElementId,
to: Option<String>,
},
ElementGetElementData {
id: u128,
element_id: ElementId,
},
ElementSetElementData {
id: u128,
element_id: ElementId,
to: Data,
},
ElementGetModuleData {
id: u128,
element_id: ElementId,
},
ElementSetModuleData {
id: u128,
element_id: ElementId,
to: Data,
},
ElementGetModule {
id: u128,
element_id: ElementId,
},
ElementSetModule {
id: u128,
element_id: ElementId,
module: Option<ModuleId>,
},
ElementGetStatuses {
id: u128,
element_id: ElementId,
},
ElementSetStatuses {
id: u128,
element_id: ElementId,
to: Vec<String>,
},
ElementGetStatus {
id: u128,
element_id: ElementId,
},
ElementSetStatus {
id: u128,
element_id: ElementId,
to: usize,
},
ElementGetData {
id: u128,
element_id: ElementId,
},
ElementSetData {
id: u128,
element_id: ElementId,
to: FileOrData,
},
ElementGetProgress {
id: u128,
element_id: ElementId,
},
ElementSetProgress {
id: u128,
element_id: ElementId,
to: f32,
},
ElementGetShouldSave {
id: u128,
element_id: ElementId,
},
ElementSetShouldSave {
id: u128,
element_id: ElementId,
to: bool,
},
ElementGetEnabled {
id: u128,
element_id: ElementId,
},
ElementSetEnabled {
id: u128,
element_id: ElementId,
to: bool,
},
ElementResolvModule {
id: u128,
element_id: ElementId,
},
ElementWait {
id: u128,
element_id: ElementId,
},
ElementGetInfo {
id: u128,
element_id: ElementId,
},
ElementNotify {
id: u128,
element_id: ElementId,
event: Event,
},
ElementEmit {
id: u128,
element_id: ElementId,
event: Event,
},
ElementSubscribe {
id: u128,
element_id: ElementId,
to: ID,
},
ElementUnSubscribe {
id: u128,
element_id: ElementId,
to: ID,
},
CreateLocation {
id: u128,
name: String,
location_id: LocationId,
},
GetLocationsLen {
id: u128,
location_id: LocationId,
},
GetLocations {
id: u128,
location_id: LocationId,
range: Range<usize>,
},
DestroyLocation {
id: u128,
location_id: LocationId,
},
MoveLocation {
id: u128,
location_id: LocationId,
to: LocationId,
},
LocationGetPath {
id: u128,
location_id: LocationId,
},
LocationSetPath {
id: u128,
location_id: LocationId,
to: PathBuf,
},
LocationGetShouldSave {
id: u128,
location_id: LocationId,
},
LocationSetShouldSave {
id: u128,
location_id: LocationId,
to: bool,
},
LocationGetElementsLen {
id: u128,
location_id: LocationId,
},
LocationGetElements {
id: u128,
location_id: LocationId,
range: Range<usize>,
},
LocationNotify {
id: u128,
location_id: LocationId,
event: Event,
},
LocationEmit {
id: u128,
location_id: LocationId,
event: Event,
},
LocationSubscribe {
id: u128,
location_id: LocationId,
to: ID,
},
LocationUnSubscribe {
id: u128,
location_id: LocationId,
to: ID,
},
Tick,
}Variants§
LoadModule
RemoveModule
GetActionsLen
GetActions
RunAction
GetModulesLen
GetModules
ModuleGetName
ModuleSetName
ModuleGetDefaultName
ModuleGetDesc
ModuleSetDesc
ModuleGetDefaultDesc
ModuleGetProxy
ModuleSetProxy
ModuleGetSettings
ModuleSetSettings
ModuleGetElementSettings
ModuleSetElementSettings
ModuleInitLocation
ModuleInitElement
ModuleAcceptUrl
ModuleAcceptExtension
ModuleAcceptedProtocols
GetDefaultLocation
LocationGetName
LocationSetName
LocationGetDesc
LocationSetDesc
LocationGetInfo
CreateElement
MoveElement
DestroyElement
ElementGetName
ElementSetName
ElementGetDesc
ElementSetDesc
ElementGetMeta
ElementSetMeta
ElementGetUrl
ElementSetUrl
ElementGetElementData
ElementSetElementData
ElementGetModuleData
ElementSetModuleData
ElementGetModule
ElementSetModule
ElementGetStatuses
ElementSetStatuses
ElementGetStatus
ElementSetStatus
ElementGetData
ElementSetData
ElementGetProgress
ElementSetProgress
ElementGetShouldSave
ElementSetShouldSave
ElementGetEnabled
ElementSetEnabled
ElementResolvModule
ElementWait
ElementGetInfo
ElementNotify
ElementEmit
ElementSubscribe
ElementUnSubscribe
CreateLocation
GetLocationsLen
GetLocations
DestroyLocation
MoveLocation
LocationGetPath
LocationSetPath
LocationGetShouldSave
LocationSetShouldSave
LocationGetElementsLen
LocationGetElements
LocationNotify
LocationEmit
LocationSubscribe
LocationUnSubscribe
Tick
Trait Implementations§
Source§impl Clone for ServerPackets
impl Clone for ServerPackets
Source§fn clone(&self) -> ServerPackets
fn clone(&self) -> ServerPackets
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 ServerPackets
impl Debug for ServerPackets
Auto Trait Implementations§
impl Freeze for ServerPackets
impl RefUnwindSafe for ServerPackets
impl Send for ServerPackets
impl Sync for ServerPackets
impl Unpin for ServerPackets
impl UnwindSafe for ServerPackets
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