Enum donet_core::protocol::Protocol

source ·
#[repr(u16)]
pub enum Protocol {
Show 113 variants ClientHello = 1, ClientHelloResp = 2, ClientDisconnect = 3, ClientEject = 4, ClientHeartbeat = 5, ClientObjectSetField = 120, ClientObjectSetFields = 121, ClientObjectLeaving = 132, ClientObjectLeavingOwner = 161, ClientEnterObjectRequired = 142, ClientEnterObjectRequiredOther = 143, ClientEnterObjectRequiredOwner = 172, ClientEnterObjectRequiredOwnerOther = 173, ClientDoneInterestResp = 204, ClientAddInterest = 200, ClientAddInterestMultiple = 201, ClientRemoveInterest = 203, ClientObjectLocation = 140, CASetState = 1_000, CASetClientID = 1_001, CASendDatagram = 1_002, CAEject = 1_004, CADrop = 1_005, CAGetNetworkAddress = 1_006, CAGetNetworkAddressResp = 1_007, CADeclareObject = 1_010, CAUndeclareObject = 1_011, CAAddSessionObject = 1_012, CARemoveSessionObject = 1_013, CASetFieldsSendable = 1_014, CAOpenChannel = 1_100, CACloseChannel = 1_101, CAAddPostRemove = 1_110, CAClearPostRemoves = 1_111, CAAddInterest = 1_200, CAAddInterestMultiple = 1_201, CARemoveInterest = 1_203, SSCreateObjectWithRequired = 2_000, SSCreateObjectWithRequiredOther = 2_001, SSDeleteAIObjects = 2_009, SSObjectGetField = 2_010, SSObjectGetFieldResp = 2_011, SSObjectGetFields = 2_012, SSObjectGetFieldsResp = 2_013, SSObjectGetAll = 2_014, SSObjectGetAllResp = 2_015, SSObjectSetField = 2_020, SSObjectSetFields = 2_021, SSObjectDeleteFieldRAM = 2_030, SSObjectDeleteFieldsRAM = 2_031, SSObjectDeleteRAM = 2_032, SSObjectSetLocation = 2_040, SSObjectChangingLocation = 2_041, SSObjectEnterLocationWithRequired = 2_042, SSObjectEnterLocationWithRequiredOther = 2_043, SSObjectGetLocation = 2_044, SSObjectGetLocationResp = 2_045, SSObjectSetAI = 2_050, SSObjectChangingAI = 2_051, SSObjectEnterAIWithRequired = 2_052, SSObjectEnterAIWithRequiredOther = 2_053, SSObjectGetAI = 2_054, SSObjectGetAIResp = 2_055, SSObjectSetOwner = 2_060, SSObjectChangingOwner = 2_061, SSObjectEnterOwnerWithRequired = 2_062, SSObjectEnterOwnerWithRequiredOther = 2_063, SSObjectGetOwner = 2_064, SSObjectGetOwnerResp = 2_065, SSObjectGetZoneObjects = 2_100, SSObjectGetZonesObjects = 2_102, SSObjectGetChildren = 2_104, SSObjectGetZoneCount = 2_110, SSObjectGetZoneCountResp = 2_111, SSObjectGetZonesCount = 2_112, SSObjectGetZonesCountResp = 2_113, SSObjectGetChildCount = 2_114, SSObjectGetChildCountResp = 2_115, SSObjectDeleteZone = 2_120, SSObjectDeleteZones = 2_122, SSObjectDeleteChildren = 2_124, DBSSObjectActivateWithDefaults = 2_200, DBSSObjectActivateWithDefaultsOther = 2_201, DBSSObjectGetActivated = 2_207, DBSSObjectGetActivatedResp = 2_208, DBSSObjectDeleteFieldDisk = 2_230, DBSSObjectDeleteFieldsDisk = 2_231, DBSSObjectDeleteDisk = 2_232, DBCreateObject = 3_000, DBCreateObjectResp = 3_001, DBObjectGetField = 3_010, DBObjectGetFieldResp = 3_011, DBObjectGetFields = 3_012, DBObjectGetFieldsResp = 3_013, DBObjectGetAll = 3_014, DBObjectGetAllResp = 3_015, DBObjectSetField = 3_020, DBObjectSetFields = 3_021, DBObjectSetFieldIfEquals = 3_022, DBObjectSetFieldIfEqualsResp = 3_023, DBObjectSetFieldsIfEquals = 3_024, DBObjectSetFieldsIfEqualsResp = 3_025, DBObjectSetFieldIfEmpty = 3_026, DBObjectSetFieldIfEmptyResp = 3_027, DBObjectDeleteField = 3_030, DBObjectDeleteFields = 3_031, DBObjectDelete = 3_032, MDAddChannel = 9_000, MDRemoveChannel = 9_001, MDAddRange = 9_002, MDRemoveRange = 9_003, MDAddPostRemove = 9_010, MDClearPostRemoves = 9_011,
}
Expand description

Enum variants for all message types in the Donet protocol.

Variants§

§

ClientHello = 1

Client Messages

§

ClientHelloResp = 2

§

ClientDisconnect = 3

§

ClientEject = 4

§

ClientHeartbeat = 5

§

ClientObjectSetField = 120

§

ClientObjectSetFields = 121

§

ClientObjectLeaving = 132

§

ClientObjectLeavingOwner = 161

§

ClientEnterObjectRequired = 142

§

ClientEnterObjectRequiredOther = 143

§

ClientEnterObjectRequiredOwner = 172

§

ClientEnterObjectRequiredOwnerOther = 173

§

ClientDoneInterestResp = 204

§

ClientAddInterest = 200

§

ClientAddInterestMultiple = 201

§

ClientRemoveInterest = 203

§

ClientObjectLocation = 140

§

CASetState = 1_000

Client Agent

§

CASetClientID = 1_001

§

CASendDatagram = 1_002

§

CAEject = 1_004

§

CADrop = 1_005

§

CAGetNetworkAddress = 1_006

§

CAGetNetworkAddressResp = 1_007

§

CADeclareObject = 1_010

§

CAUndeclareObject = 1_011

§

CAAddSessionObject = 1_012

§

CARemoveSessionObject = 1_013

§

CASetFieldsSendable = 1_014

§

CAOpenChannel = 1_100

§

CACloseChannel = 1_101

§

CAAddPostRemove = 1_110

§

CAClearPostRemoves = 1_111

§

CAAddInterest = 1_200

§

CAAddInterestMultiple = 1_201

§

CARemoveInterest = 1_203

§

SSCreateObjectWithRequired = 2_000

State Server

§

SSCreateObjectWithRequiredOther = 2_001

§

SSDeleteAIObjects = 2_009

§

SSObjectGetField = 2_010

§

SSObjectGetFieldResp = 2_011

§

SSObjectGetFields = 2_012

§

SSObjectGetFieldsResp = 2_013

§

SSObjectGetAll = 2_014

§

SSObjectGetAllResp = 2_015

§

SSObjectSetField = 2_020

§

SSObjectSetFields = 2_021

§

SSObjectDeleteFieldRAM = 2_030

§

SSObjectDeleteFieldsRAM = 2_031

§

SSObjectDeleteRAM = 2_032

§

SSObjectSetLocation = 2_040

§

SSObjectChangingLocation = 2_041

§

SSObjectEnterLocationWithRequired = 2_042

§

SSObjectEnterLocationWithRequiredOther = 2_043

§

SSObjectGetLocation = 2_044

§

SSObjectGetLocationResp = 2_045

§

SSObjectSetAI = 2_050

§

SSObjectChangingAI = 2_051

§

SSObjectEnterAIWithRequired = 2_052

§

SSObjectEnterAIWithRequiredOther = 2_053

§

SSObjectGetAI = 2_054

§

SSObjectGetAIResp = 2_055

§

SSObjectSetOwner = 2_060

§

SSObjectChangingOwner = 2_061

§

SSObjectEnterOwnerWithRequired = 2_062

§

SSObjectEnterOwnerWithRequiredOther = 2_063

§

SSObjectGetOwner = 2_064

§

SSObjectGetOwnerResp = 2_065

§

SSObjectGetZoneObjects = 2_100

§

SSObjectGetZonesObjects = 2_102

§

SSObjectGetChildren = 2_104

§

SSObjectGetZoneCount = 2_110

§

SSObjectGetZoneCountResp = 2_111

§

SSObjectGetZonesCount = 2_112

§

SSObjectGetZonesCountResp = 2_113

§

SSObjectGetChildCount = 2_114

§

SSObjectGetChildCountResp = 2_115

§

SSObjectDeleteZone = 2_120

§

SSObjectDeleteZones = 2_122

§

SSObjectDeleteChildren = 2_124

§

DBSSObjectActivateWithDefaults = 2_200

Database State Server

§

DBSSObjectActivateWithDefaultsOther = 2_201

§

DBSSObjectGetActivated = 2_207

§

DBSSObjectGetActivatedResp = 2_208

§

DBSSObjectDeleteFieldDisk = 2_230

§

DBSSObjectDeleteFieldsDisk = 2_231

§

DBSSObjectDeleteDisk = 2_232

§

DBCreateObject = 3_000

Database Server

§

DBCreateObjectResp = 3_001

§

DBObjectGetField = 3_010

§

DBObjectGetFieldResp = 3_011

§

DBObjectGetFields = 3_012

§

DBObjectGetFieldsResp = 3_013

§

DBObjectGetAll = 3_014

§

DBObjectGetAllResp = 3_015

§

DBObjectSetField = 3_020

§

DBObjectSetFields = 3_021

§

DBObjectSetFieldIfEquals = 3_022

§

DBObjectSetFieldIfEqualsResp = 3_023

§

DBObjectSetFieldsIfEquals = 3_024

§

DBObjectSetFieldsIfEqualsResp = 3_025

§

DBObjectSetFieldIfEmpty = 3_026

§

DBObjectSetFieldIfEmptyResp = 3_027

§

DBObjectDeleteField = 3_030

§

DBObjectDeleteFields = 3_031

§

DBObjectDelete = 3_032

§

MDAddChannel = 9_000

Message Director (Control)

§

MDRemoveChannel = 9_001

§

MDAddRange = 9_002

§

MDRemoveRange = 9_003

§

MDAddPostRemove = 9_010

§

MDClearPostRemoves = 9_011

Trait Implementations§

source§

impl Clone for Protocol

source§

fn clone(&self) -> Protocol

Returns a copy 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 Protocol

source§

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

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

impl From<Protocol> for MsgType

Impl converting protocol enumerator to u16 (MsgType)

source§

fn from(value: Protocol) -> Self

Converts to this type from the input type.
source§

impl IntoEnumIterator for Protocol

source§

impl PartialEq for Protocol

source§

fn eq(&self, other: &Protocol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Protocol

source§

impl StructuralPartialEq for Protocol

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.