pub enum FrameReply {
Ignore,
CallError,
CallResultError,
}Expand description
How a frame that could not be parsed must be answered (Part 4 §4.2.3).
CALLERROR “is sent in response to a CALL”, CALLRESULTERROR “on receipt of a CALLRESULT
that contains errors” — and an unparseable error frame gets neither, or two peers end up
trading error frames over a message that was already an error.
Variants§
Ignore
Say nothing. The frame was a SEND, or was itself an error frame, or the version
says to ignore it.
CallError
Answer with a CALLERROR.
CallResultError
Answer with a CALLRESULTERROR (OCPP 2.1 only; before that the failure stays local).
Trait Implementations§
Source§impl Clone for FrameReply
impl Clone for FrameReply
Source§fn clone(&self) -> FrameReply
fn clone(&self) -> FrameReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameReply
Source§impl Debug for FrameReply
impl Debug for FrameReply
impl Eq for FrameReply
Source§impl PartialEq for FrameReply
impl PartialEq for FrameReply
impl StructuralPartialEq for FrameReply
Auto Trait Implementations§
impl Freeze for FrameReply
impl RefUnwindSafe for FrameReply
impl Send for FrameReply
impl Sync for FrameReply
impl Unpin for FrameReply
impl UnsafeUnpin for FrameReply
impl UnwindSafe for FrameReply
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