pub struct UnknownValue;Expand description
Returned by FromStr for a value the specification doesn’t
define.
Not in itself a protocol error: OCPP permits vendor-specific
components, variables, configuration keys and security events,
so receiving one of those is conformant. Use from_wire when an
unrecognized value is expected and Option reads better than
Result.
Trait Implementations§
Source§impl Clone for UnknownValue
impl Clone for UnknownValue
Source§fn clone(&self) -> UnknownValue
fn clone(&self) -> UnknownValue
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 UnknownValue
Source§impl Debug for UnknownValue
impl Debug for UnknownValue
Source§impl Display for UnknownValue
impl Display for UnknownValue
impl Eq for UnknownValue
Source§impl Error for UnknownValue
impl Error for UnknownValue
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Hash for UnknownValue
impl Hash for UnknownValue
Source§impl PartialEq for UnknownValue
impl PartialEq for UnknownValue
impl StructuralPartialEq for UnknownValue
Auto Trait Implementations§
impl Freeze for UnknownValue
impl RefUnwindSafe for UnknownValue
impl Send for UnknownValue
impl Sync for UnknownValue
impl Unpin for UnknownValue
impl UnsafeUnpin for UnknownValue
impl UnwindSafe for UnknownValue
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