#[non_exhaustive]pub enum Body<'a> {
Show 15 variants
OpenRequest(OpenRequest<'a>),
OpenResponse(OpenResponse<'a>),
CloseRequest(CloseRequest<'a>),
CloseResponse(CloseResponse<'a>),
GetListRequest(GetListRequest<'a>),
GetListResponse(GetListResponse<'a>),
Attention(Attention<'a>),
GetProcParameterRequest(GetProcParameterRequest<'a>),
GetProcParameterResponse(GetProcParameterResponse<'a>),
SetProcParameterRequest(SetProcParameterRequest<'a>),
GetProfilePackRequest(GetProfileRequest<'a>),
GetProfileListRequest(GetProfileRequest<'a>),
GetProfileListResponse(GetProfileListResponse<'a>),
GetProfilePackResponse(GetProfilePackResponse<'a>),
Other {
tag: u32,
raw: &'a [u8],
},
}Expand description
A message body.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OpenRequest(OpenRequest<'a>)
A client opens an SML file.
OpenResponse(OpenResponse<'a>)
The device opens an SML file.
CloseRequest(CloseRequest<'a>)
A client closes an SML file.
CloseResponse(CloseResponse<'a>)
The device closes an SML file.
GetListRequest(GetListRequest<'a>)
A client asks for a list of values.
GetListResponse(GetListResponse<'a>)
Readings: a list of named values.
Attention(Attention<'a>)
An error or status code from the device. Also the answer to a set request.
GetProcParameterRequest(GetProcParameterRequest<'a>)
A client asks for parameters.
GetProcParameterResponse(GetProcParameterResponse<'a>)
Parameters: a tree of named values.
SetProcParameterRequest(SetProcParameterRequest<'a>)
A client sets parameters. The device answers with an Attention.
GetProfilePackRequest(GetProfileRequest<'a>)
A client asks for a profile as one packed response (SML_GetProfilePack.Req).
GetProfileListRequest(GetProfileRequest<'a>)
A client asks for a profile as a list of periods (SML_GetProfileList.Req).
GetProfileListResponse(GetProfileListResponse<'a>)
One period of a profile, e.g. one logbook entry.
GetProfilePackResponse(GetProfilePackResponse<'a>)
A whole profile: column headers once, then rows of values.
Other
A body this crate does not type, with its raw bytes: the COSEM bodies, for which no real use was found.