#[non_exhaustive]pub enum Output {
Transmit(String),
Request(IncomingRequest),
Outcome(CallOutcome),
ResultRejected {
id: MessageId,
error: CallError,
},
SetTimer {
timer: Timer,
at: Instant,
},
ClearTimer(Timer),
BootState(BootState),
ClockSample(ClockSample),
Violation(ProtocolViolation),
Close(CloseReason),
}Expand description
What the driver must do next.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Transmit(String)
Write this UTF-8 text frame to the WebSocket.
Request(IncomingRequest)
The peer sent a request. Answer a Call with Engine::respond; a Send needs no
answer and must not get one.
Outcome(CallOutcome)
One of our calls finished.
ResultRejected
The peer rejected a CALLRESULT we sent, with CALLRESULTERROR (OCPP 2.1).
SetTimer
Arm a timer. Re-arming an already-armed timer replaces it.
ClearTimer(Timer)
Disarm a timer.
BootState(BootState)
The boot state changed (Charging Station side), or was decided (CSMS side).
ClockSample(ClockSample)
A currentTime was observed.
Violation(ProtocolViolation)
The peer misbehaved. Never fatal by itself; log it and carry on.
Close(CloseReason)
Close the connection.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Output
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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