#[repr(u8)]pub enum CemiMessageCode {
LDataRequest = 17,
LDataIndication = 41,
LDataConfirmation = 46,
}Expand description
What a cEMI frame is, as its first octet states.
Only the L_Data codes are modeled - the data services that move a telegram - and each names a direction as much as a shape: a request is what a client hands a server, an indication is what a receiver reports, and a confirmation is what a server answers a request with.
Variants§
LDataRequest = 17
L_Data.req: a frame a client asks the server to transmit.
LDataIndication = 41
L_Data.ind: a frame that arrived, reported to whoever is listening.
LDataConfirmation = 46
L_Data.con: the server’s answer to a request, stating how the
transmission it performed went. The outcome itself lives in control
field 1 and is read through CemiFrame::confirmation.
Implementations§
Trait Implementations§
Source§impl Clone for CemiMessageCode
impl Clone for CemiMessageCode
Source§fn clone(&self) -> CemiMessageCode
fn clone(&self) -> CemiMessageCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CemiMessageCode
Source§impl Debug for CemiMessageCode
impl Debug for CemiMessageCode
impl Eq for CemiMessageCode
Source§impl Hash for CemiMessageCode
impl Hash for CemiMessageCode
Source§impl PartialEq for CemiMessageCode
impl PartialEq for CemiMessageCode
impl StructuralPartialEq for CemiMessageCode
Auto Trait Implementations§
impl Freeze for CemiMessageCode
impl RefUnwindSafe for CemiMessageCode
impl Send for CemiMessageCode
impl Sync for CemiMessageCode
impl Unpin for CemiMessageCode
impl UnsafeUnpin for CemiMessageCode
impl UnwindSafe for CemiMessageCode
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