Enum sttp::transport::ServerResponse
source · #[repr(u8)]
pub enum ServerResponse {
Show 28 variants
Succeeded,
Failed,
DataPacket,
UpdateSignalIndexCache,
UpdateBaseTimes,
UpdateCipherKeys,
DataStartTime,
ProcessingComplete,
BufferBlock,
Notify,
ConfigurationChanged,
UserResponse00,
UserResponse01,
UserResponse02,
UserResponse03,
UserResponse04,
UserResponse05,
UserResponse06,
UserResponse07,
UserResponse08,
UserResponse09,
UserResponse10,
UserResponse11,
UserResponse12,
UserResponse13,
UserResponse14,
UserResponse15,
NoOP,
}
Expand description
Enumeration of the possible server responses sent by DataPublisher
and received by DataSubscriber
during an STTP session.
Variants§
Succeeded
Response code indicating a succeeded response.
Informs client that its solicited server command succeeded, original command and success message follow.
Failed
Response code indicating a failed response.
Informs client that its solicited server command failed, original command and failure message follow.
DataPacket
Response code indicating a data packet.
Unsolicited response informs client that a data packet follows.
UpdateSignalIndexCache
Response code indicating a signal index cache update.
Unsolicited response requests that client update its runtime signal index cache with the one that follows.
UpdateBaseTimes
Response code indicating a runtime base-timestamp offsets have been updated.
Unsolicited response requests that client update its runtime base-timestamp offsets with those that follow.
UpdateCipherKeys
Response code indicating a runtime cipher keys have been updated.
Response, solicited or unsolicited, requests that client update its runtime data cipher keys with those that follow.
DataStartTime
Response code indicating the start time of data being published.
Unsolicited response provides the start time of data being processed from the first measurement.
ProcessingComplete
Response code indicating that processing has completed.
Unsolicited response provides notification that input processing has completed, typically via temporal constraint.
BufferBlock
Response code indicating a buffer block.
Unsolicited response informs client that a raw buffer block follows.
Notify
Response code indicating a notification.
Unsolicited response provides a notification message to the client.
ConfigurationChanged
Response code indicating a that the publisher configuration metadata has changed.
Unsolicited response provides a notification that the publisher’s source configuration has changed and that client may want to request a meta-data refresh.
UserResponse00
Response code handling user-defined responses.
UserResponse01
Response code handling user-defined responses.
UserResponse02
Response code handling user-defined responses.
UserResponse03
Response code handling user-defined responses.
UserResponse04
Response code handling user-defined responses.
UserResponse05
Response code handling user-defined responses.
UserResponse06
Response code handling user-defined responses.
UserResponse07
Response code handling user-defined responses.
UserResponse08
Response code handling user-defined responses.
UserResponse09
Response code handling user-defined responses.
UserResponse10
Response code handling user-defined responses.
UserResponse11
Response code handling user-defined responses.
UserResponse12
Response code handling user-defined responses.
UserResponse13
Response code handling user-defined responses.
UserResponse14
Response code handling user-defined responses.
UserResponse15
Response code handling user-defined responses.
NoOP
Response code indicating a null-operation keep-alive ping.
The command channel can remain quiet for some time, this command allows a period test of client connectivity.
Trait Implementations§
source§impl Clone for ServerResponse
impl Clone for ServerResponse
source§fn clone(&self) -> ServerResponse
fn clone(&self) -> ServerResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServerResponse
impl Debug for ServerResponse
source§impl PartialEq<ServerResponse> for ServerResponse
impl PartialEq<ServerResponse> for ServerResponse
source§fn eq(&self, other: &ServerResponse) -> bool
fn eq(&self, other: &ServerResponse) -> bool
self
and other
values to be equal, and is used
by ==
.