pub enum OcppVersion {
V16,
V201,
V21,
}Variants§
Implementations§
Source§impl OcppVersion
impl OcppVersion
pub const ALL: [OcppVersion; 3]
Sourcepub const fn subprotocol(self) -> &'static str
pub const fn subprotocol(self) -> &'static str
IANA-registered WebSocket subprotocol name.
pub fn from_subprotocol(s: &str) -> Option<OcppVersion>
pub const fn dialect(self) -> ErrorDialect
Trait Implementations§
Source§impl Clone for OcppVersion
impl Clone for OcppVersion
impl Copy for OcppVersion
Source§impl Debug for OcppVersion
impl Debug for OcppVersion
Source§impl Display for OcppVersion
impl Display for OcppVersion
impl Eq for OcppVersion
Source§impl FromStr for OcppVersion
impl FromStr for OcppVersion
Source§impl Hash for OcppVersion
impl Hash for OcppVersion
Source§impl Ord for OcppVersion
impl Ord for OcppVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OcppVersion
impl PartialEq for OcppVersion
Source§impl PartialOrd for OcppVersion
impl PartialOrd for OcppVersion
impl StructuralPartialEq for OcppVersion
Auto Trait Implementations§
impl Freeze for OcppVersion
impl RefUnwindSafe for OcppVersion
impl Send for OcppVersion
impl Sync for OcppVersion
impl Unpin for OcppVersion
impl UnsafeUnpin for OcppVersion
impl UnwindSafe for OcppVersion
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