ServerPackets

Enum ServerPackets 

Source
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

Fields

§id: u128
§path: PathBuf
§

RemoveModule

Fields

§id: u128
§module_id: ModuleId
§

GetActionsLen

Fields

§id: u128
§

GetActions

Fields

§id: u128
§range: Range<usize>
§

RunAction

Fields

§id: u128
§module_id: ModuleId
§name: String
§data: Vec<Type>
§

GetModulesLen

Fields

§id: u128
§

GetModules

Fields

§id: u128
§range: Range<usize>
§

ModuleGetName

Fields

§id: u128
§module_id: ModuleId
§

ModuleSetName

Fields

§id: u128
§module_id: ModuleId
§

ModuleGetDefaultName

Fields

§id: u128
§module_id: ModuleId
§

ModuleGetDesc

Fields

§id: u128
§module_id: ModuleId
§

ModuleSetDesc

Fields

§id: u128
§module_id: ModuleId
§

ModuleGetDefaultDesc

Fields

§id: u128
§module_id: ModuleId
§

ModuleGetProxy

Fields

§id: u128
§module_id: ModuleId
§

ModuleSetProxy

Fields

§id: u128
§module_id: ModuleId
§

ModuleGetSettings

Fields

§id: u128
§module_id: ModuleId
§

ModuleSetSettings

Fields

§id: u128
§module_id: ModuleId
§to: Data
§

ModuleGetElementSettings

Fields

§id: u128
§module_id: ModuleId
§

ModuleSetElementSettings

Fields

§id: u128
§module_id: ModuleId
§to: Data
§

ModuleInitLocation

Fields

§id: u128
§module_id: ModuleId
§location_id: LocationId
§

ModuleInitElement

Fields

§id: u128
§module_id: ModuleId
§element_id: ElementId
§

ModuleAcceptUrl

Fields

§id: u128
§module_id: ModuleId
§

ModuleAcceptExtension

Fields

§id: u128
§module_id: ModuleId
§filename: String
§

ModuleAcceptedProtocols

Fields

§id: u128
§module_id: ModuleId
§

GetDefaultLocation

Fields

§id: u128
§

LocationGetName

Fields

§id: u128
§

LocationSetName

Fields

§id: u128
§

LocationGetDesc

Fields

§id: u128
§

LocationSetDesc

Fields

§id: u128
§

LocationGetInfo

Fields

§id: u128
§

CreateElement

Fields

§id: u128
§location_id: LocationId
§name: String
§

MoveElement

Fields

§id: u128
§element_id: ElementId
§location_id: LocationId
§

DestroyElement

Fields

§id: u128
§element_id: ElementId
§

ElementGetName

Fields

§id: u128
§element_id: ElementId
§

ElementSetName

Fields

§id: u128
§element_id: ElementId
§

ElementGetDesc

Fields

§id: u128
§element_id: ElementId
§

ElementSetDesc

Fields

§id: u128
§element_id: ElementId
§

ElementGetMeta

Fields

§id: u128
§element_id: ElementId
§

ElementSetMeta

Fields

§id: u128
§element_id: ElementId
§

ElementGetUrl

Fields

§id: u128
§element_id: ElementId
§

ElementSetUrl

Fields

§id: u128
§element_id: ElementId
§

ElementGetElementData

Fields

§id: u128
§element_id: ElementId
§

ElementSetElementData

Fields

§id: u128
§element_id: ElementId
§to: Data
§

ElementGetModuleData

Fields

§id: u128
§element_id: ElementId
§

ElementSetModuleData

Fields

§id: u128
§element_id: ElementId
§to: Data
§

ElementGetModule

Fields

§id: u128
§element_id: ElementId
§

ElementSetModule

Fields

§id: u128
§element_id: ElementId
§

ElementGetStatuses

Fields

§id: u128
§element_id: ElementId
§

ElementSetStatuses

Fields

§id: u128
§element_id: ElementId
§

ElementGetStatus

Fields

§id: u128
§element_id: ElementId
§

ElementSetStatus

Fields

§id: u128
§element_id: ElementId
§

ElementGetData

Fields

§id: u128
§element_id: ElementId
§

ElementSetData

Fields

§id: u128
§element_id: ElementId
§

ElementGetProgress

Fields

§id: u128
§element_id: ElementId
§

ElementSetProgress

Fields

§id: u128
§element_id: ElementId
§to: f32
§

ElementGetShouldSave

Fields

§id: u128
§element_id: ElementId
§

ElementSetShouldSave

Fields

§id: u128
§element_id: ElementId
§to: bool
§

ElementGetEnabled

Fields

§id: u128
§element_id: ElementId
§

ElementSetEnabled

Fields

§id: u128
§element_id: ElementId
§to: bool
§

ElementResolvModule

Fields

§id: u128
§element_id: ElementId
§

ElementWait

Fields

§id: u128
§element_id: ElementId
§

ElementGetInfo

Fields

§id: u128
§element_id: ElementId
§

ElementNotify

Fields

§id: u128
§element_id: ElementId
§event: Event
§

ElementEmit

Fields

§id: u128
§element_id: ElementId
§event: Event
§

ElementSubscribe

Fields

§id: u128
§element_id: ElementId
§to: ID
§

ElementUnSubscribe

Fields

§id: u128
§element_id: ElementId
§to: ID
§

CreateLocation

Fields

§id: u128
§name: String
§location_id: LocationId
§

GetLocationsLen

Fields

§id: u128
§location_id: LocationId
§

GetLocations

Fields

§id: u128
§location_id: LocationId
§range: Range<usize>
§

DestroyLocation

Fields

§id: u128
§location_id: LocationId
§

MoveLocation

Fields

§id: u128
§location_id: LocationId
§

LocationGetPath

Fields

§id: u128
§location_id: LocationId
§

LocationSetPath

Fields

§id: u128
§location_id: LocationId
§

LocationGetShouldSave

Fields

§id: u128
§location_id: LocationId
§

LocationSetShouldSave

Fields

§id: u128
§location_id: LocationId
§to: bool
§

LocationGetElementsLen

Fields

§id: u128
§location_id: LocationId
§

LocationGetElements

Fields

§id: u128
§location_id: LocationId
§range: Range<usize>
§

LocationNotify

Fields

§id: u128
§location_id: LocationId
§event: Event
§

LocationEmit

Fields

§id: u128
§location_id: LocationId
§event: Event
§

LocationSubscribe

Fields

§id: u128
§location_id: LocationId
§to: ID
§

LocationUnSubscribe

Fields

§id: u128
§location_id: LocationId
§to: ID
§

Tick

Trait Implementations§

Source§

impl Clone for ServerPackets

Source§

fn clone(&self) -> ServerPackets

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ServerPackets

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl TBytes for ServerPackets

Source§

fn size(&self) -> usize

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

fn from_bytes(bytes: &mut Vec<u8>) -> Option<Self>

Source§

fn from_bytes_ref(buffer: &[u8]) -> Option<Self>
where Self: Sized,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.