pub enum HeartbeatPolicy {
Automatic,
Manual,
}Expand description
Whether the engine sends Heartbeat on its own.
Variants§
Automatic
The engine schedules and sends Heartbeat itself.
OCPPCommCtrlr.HeartbeatInterval is defined as the interval of inactivity — “no
OCPP exchanges” — after which a station sends Heartbeat, so the timer is an idle
timer that every frame in either direction resets, not a fixed period. The payload is
an empty object in every version, so no application code is needed.
Manual
The application sends Heartbeat itself; the engine only reports the interval.
Trait Implementations§
Source§impl Clone for HeartbeatPolicy
impl Clone for HeartbeatPolicy
impl Copy for HeartbeatPolicy
Source§impl Debug for HeartbeatPolicy
impl Debug for HeartbeatPolicy
Source§impl Default for HeartbeatPolicy
impl Default for HeartbeatPolicy
impl Eq for HeartbeatPolicy
Source§impl PartialEq for HeartbeatPolicy
impl PartialEq for HeartbeatPolicy
impl StructuralPartialEq for HeartbeatPolicy
Auto Trait Implementations§
impl Forget for HeartbeatPolicy
impl Freeze for HeartbeatPolicy
impl Move for HeartbeatPolicy
impl RefUnwindSafe for HeartbeatPolicy
impl Send for HeartbeatPolicy
impl Sync for HeartbeatPolicy
impl Unpin for HeartbeatPolicy
impl UnsafeUnpin for HeartbeatPolicy
impl UnwindSafe for HeartbeatPolicy
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