Enum echonet_lite::ServiceCode
source · #[repr(u8)]pub enum ServiceCode {
Show 16 variants
SetISNA = 80,
SetCSNA = 81,
GetSNA = 82,
InfSNA = 83,
SetGetSNA = 94,
SetI = 96,
SetC = 97,
Get = 98,
InfReq = 99,
SetGet = 110,
SetRes = 113,
GetRes = 114,
Inf = 115,
InfC = 116,
InfCRes = 122,
SetGetRes = 126,
}
Expand description
Reperesents ECHONET LiteService (ESV). The service code specifies an operation for properties stipulated by the EPC.
Variants§
SetISNA = 80
A response for SetI; Property value write “response is not possible”.
SetCSNA = 81
A response for SetC; Property value write “response is not possible”.
GetSNA = 82
A response for Get; Property value read “response is not possible”.
InfSNA = 83
A response for InfReq; Property value notification “response is not possible”.
SetGetSNA = 94
A response for SetGet; Property value write & read request “response not possible”.
SetI = 96
Property value write request (no response required). Broadcast possible.
SetC = 97
Property value write request (response required). Broadcast possible.
Get = 98
Property value read request. Broadcast possible.
InfReq = 99
Property value notification request. Broadcast possible.
SetGet = 110
Property value read & write request. Broadcast possible.
SetRes = 113
An individual response for SetC; Property value write response.
GetRes = 114
An individual response for Get; Property value read response.
Inf = 115
Property value notification. Both individual notification and broadcast notification.
InfC = 116
Individual property value notification (response required).
InfCRes = 122
An individual response for InfC; Property value notification response.
SetGetRes = 126
An individual response for SetGet; Property value write & read response.
Trait Implementations§
source§impl Clone for ServiceCode
impl Clone for ServiceCode
source§fn clone(&self) -> ServiceCode
fn clone(&self) -> ServiceCode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceCode
impl Debug for ServiceCode
source§impl<'de> Deserialize<'de> for ServiceCode
impl<'de> Deserialize<'de> for ServiceCode
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>,
source§impl Display for ServiceCode
impl Display for ServiceCode
source§impl FromPrimitive for ServiceCode
impl FromPrimitive for ServiceCode
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§impl PartialEq for ServiceCode
impl PartialEq for ServiceCode
source§fn eq(&self, other: &ServiceCode) -> bool
fn eq(&self, other: &ServiceCode) -> bool
self
and other
values to be equal, and is used
by ==
.