pub struct HeartBeatIntervals {
pub supplied: u32,
pub expected: u32,
}
Expand description
A pair of numbers which specify at what intervall the originator of the containing message will supply a heartbeat and expect a heartbeat.
Fields§
§supplied: u32
§expected: u32
Implementations§
Source§impl HeartBeatIntervals
impl HeartBeatIntervals
pub fn new(supplied: u32, expected: u32) -> HeartBeatIntervals
Trait Implementations§
Source§impl Clone for HeartBeatIntervals
impl Clone for HeartBeatIntervals
Source§fn clone(&self) -> HeartBeatIntervals
fn clone(&self) -> HeartBeatIntervals
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 HeartBeatIntervals
impl Debug for HeartBeatIntervals
Source§impl Default for HeartBeatIntervals
impl Default for HeartBeatIntervals
Source§fn default() -> HeartBeatIntervals
fn default() -> HeartBeatIntervals
Returns the “default value” for a type. Read more
Source§impl Display for HeartBeatIntervals
impl Display for HeartBeatIntervals
Source§impl FromStr for HeartBeatIntervals
impl FromStr for HeartBeatIntervals
Source§fn from_str(input: &str) -> Result<HeartBeatIntervals, StompParseError>
fn from_str(input: &str) -> Result<HeartBeatIntervals, StompParseError>
Parses the string message as two ints representing “supplied, expected” heartbeat intervalls
Source§type Err = StompParseError
type Err = StompParseError
The associated error which can be returned from parsing.
Source§impl<'a> Into<HeartBeatIntervals> for HeartBeatValue<'a>
impl<'a> Into<HeartBeatIntervals> for HeartBeatValue<'a>
Source§fn into(self) -> HeartBeatIntervals
fn into(self) -> HeartBeatIntervals
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for HeartBeatIntervals
impl PartialEq for HeartBeatIntervals
impl Eq for HeartBeatIntervals
impl StructuralPartialEq for HeartBeatIntervals
Auto Trait Implementations§
impl Freeze for HeartBeatIntervals
impl RefUnwindSafe for HeartBeatIntervals
impl Send for HeartBeatIntervals
impl Sync for HeartBeatIntervals
impl Unpin for HeartBeatIntervals
impl UnwindSafe for HeartBeatIntervals
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