pub enum ServerEvent {
Show 24 variants
Started {
address: SocketAddr,
},
Stopped,
ClientConnected {
channel_id: u8,
address: SocketAddr,
},
ClientDisconnected {
channel_id: u8,
},
GroupValueWrite {
address: GroupAddress,
value: Vec<u8>,
source: IndividualAddress,
},
GroupValueRead {
address: GroupAddress,
source: IndividualAddress,
},
SequenceEvent {
channel_id: u8,
validation: SequenceEventType,
},
ConfirmationSent {
channel_id: u8,
success: bool,
},
BusMonitorFrameSent {
channel_id: u8,
message_code: u8,
raw_frame_len: usize,
},
PropertyRead {
channel_id: u8,
object_index: u16,
property_id: u16,
},
PropertyWrite {
channel_id: u8,
object_index: u16,
property_id: u16,
},
DeviceReset {
channel_id: u8,
},
DataIndBroadcast {
source_channel_id: u8,
target_channel_count: usize,
group_address: GroupAddress,
},
FrameDelayed {
channel_id: u8,
delay_ms: u64,
pace_state: String,
},
FrameQueued {
channel_id: u8,
priority: String,
queue_depth: usize,
},
FrameDropped {
channel_id: u8,
reason: String,
},
CircuitBreakerStateChanged {
new_state: String,
failure_count: u32,
},
QueueDrained {
channel_id: u8,
drained_count: usize,
},
HeartbeatAction {
channel_id: u8,
action: String,
status_code: Option<u8>,
},
HeartbeatSuppressed {
channel_id: u8,
},
GroupValueCacheUpdated {
address: GroupAddress,
source: String,
cache_size: usize,
},
SendErrorThreshold {
channel_id: u8,
consecutive_errors: u32,
threshold: u32,
},
SendErrorRateWarning {
channel_id: u8,
error_count: usize,
window_ms: u64,
rate_percent: u32,
},
Error {
message: String,
},
}Expand description
Server event.
Variants§
Started
Server started.
Fields
§
address: SocketAddrStopped
Server stopped.
ClientConnected
Client connected.
ClientDisconnected
Client disconnected.
GroupValueWrite
Group value written.
GroupValueRead
Group value read.
SequenceEvent
Sequence validation event.
ConfirmationSent
L_Data.con sent.
BusMonitorFrameSent
Bus monitor frame sent.
PropertyRead
Property read request processed.
PropertyWrite
Property write request processed.
DeviceReset
Device reset requested.
DataIndBroadcast
L_Data.ind broadcast to other connections.
FrameDelayed
Frame delayed by PaceFilter (bus timing simulation).
FrameQueued
Frame queued by QueueFilter (backpressure active).
FrameDropped
Frame dropped by flow control filter.
CircuitBreakerStateChanged
Circuit breaker state changed.
QueueDrained
Queued frames drained after ACK received.
HeartbeatAction
Heartbeat action taken (non-Continue).
HeartbeatSuppressed
Heartbeat suppressed (NoResponse action).
GroupValueCacheUpdated
Group value cache updated.
SendErrorThreshold
Send error threshold exceeded — tunnel restart recommended.
SendErrorRateWarning
Send error rate warning.
Error
Error occurred.
Trait Implementations§
Source§impl Clone for ServerEvent
impl Clone for ServerEvent
Source§fn clone(&self) -> ServerEvent
fn clone(&self) -> ServerEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerEvent
impl RefUnwindSafe for ServerEvent
impl Send for ServerEvent
impl Sync for ServerEvent
impl Unpin for ServerEvent
impl UnsafeUnpin for ServerEvent
impl UnwindSafe for ServerEvent
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