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 duplicate 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
Source§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<'a> Into<StompVersion> for VersionValue<'a>
impl<'a> Into<StompVersion> for VersionValue<'a>
Source§fn into(self) -> StompVersion
fn into(self) -> StompVersion
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for StompVersion
impl PartialEq for StompVersion
impl Eq for StompVersion
impl StructuralPartialEq for StompVersion
Auto Trait Implementations§
impl Freeze for StompVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more