Enum stomp_parser::headers::StompVersion
source · pub enum StompVersion {
V1_0,
V1_1,
V1_2,
Unknown(String),
}
Expand description
Stomp Versions that client and server can negotiate to use
Variants§
Trait Implementations§
source§impl Clone for StompVersion
impl Clone for StompVersion
source§fn clone(&self) -> StompVersion
fn clone(&self) -> StompVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StompVersion
impl Debug for StompVersion
source§impl Display for StompVersion
impl Display for StompVersion
source§impl FromStr for StompVersion
impl FromStr for StompVersion
§type Err = StompParseError
type Err = StompParseError
The associated error which can be returned from parsing.
source§fn from_str(input: &str) -> Result<StompVersion, StompParseError>
fn from_str(input: &str) -> Result<StompVersion, StompParseError>
Parses a string
s
to return a value of this type. Read moresource§impl Into<StompVersion> for VersionValue
impl Into<StompVersion> for VersionValue
source§fn into(self) -> StompVersion
fn into(self) -> StompVersion
Converts this type into the (usually inferred) input type.
source§impl PartialEq<StompVersion> for StompVersion
impl PartialEq<StompVersion> for StompVersion
source§fn eq(&self, other: &StompVersion) -> bool
fn eq(&self, other: &StompVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StompVersion
impl StructuralEq for StompVersion
impl StructuralPartialEq for StompVersion
Auto Trait Implementations§
impl RefUnwindSafe for StompVersion
impl Send for StompVersion
impl Sync for StompVersion
impl Unpin for StompVersion
impl UnwindSafe for StompVersion
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