pub struct HeartBeatIntervalls {
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 HeartBeatIntervalls
impl HeartBeatIntervalls
pub fn new(supplied: u32, expected: u32) -> HeartBeatIntervalls
Trait Implementations§
Source§impl Clone for HeartBeatIntervalls
impl Clone for HeartBeatIntervalls
Source§fn clone(&self) -> HeartBeatIntervalls
fn clone(&self) -> HeartBeatIntervalls
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 HeartBeatIntervalls
impl Debug for HeartBeatIntervalls
Source§impl Default for HeartBeatIntervalls
impl Default for HeartBeatIntervalls
Source§fn default() -> HeartBeatIntervalls
fn default() -> HeartBeatIntervalls
Returns the “default value” for a type. Read more
Source§impl Display for HeartBeatIntervalls
impl Display for HeartBeatIntervalls
Source§impl FromStr for HeartBeatIntervalls
impl FromStr for HeartBeatIntervalls
Source§fn from_str(input: &str) -> Result<HeartBeatIntervalls, StompParseError>
fn from_str(input: &str) -> Result<HeartBeatIntervalls, 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<HeartBeatIntervalls> for HeartBeatValue<'a>
impl<'a> Into<HeartBeatIntervalls> for HeartBeatValue<'a>
Source§fn into(self) -> HeartBeatIntervalls
fn into(self) -> HeartBeatIntervalls
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for HeartBeatIntervalls
impl PartialEq for HeartBeatIntervalls
impl Eq for HeartBeatIntervalls
impl StructuralPartialEq for HeartBeatIntervalls
Auto Trait Implementations§
impl Freeze for HeartBeatIntervalls
impl RefUnwindSafe for HeartBeatIntervalls
impl Send for HeartBeatIntervalls
impl Sync for HeartBeatIntervalls
impl Unpin for HeartBeatIntervalls
impl UnwindSafe for HeartBeatIntervalls
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