Struct stomp_parser::headers::HeartBeatIntervalls
source · 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: u32Implementations§
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 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 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
§type Err = StompParseError
type Err = StompParseError
The associated error which can be returned from parsing.
source§impl Into<HeartBeatIntervalls> for HeartBeatValue
impl Into<HeartBeatIntervalls> for HeartBeatValue
source§fn into(self) -> HeartBeatIntervalls
fn into(self) -> HeartBeatIntervalls
Converts this type into the (usually inferred) input type.
source§impl PartialEq<HeartBeatIntervalls> for HeartBeatIntervalls
impl PartialEq<HeartBeatIntervalls> for HeartBeatIntervalls
source§fn eq(&self, other: &HeartBeatIntervalls) -> bool
fn eq(&self, other: &HeartBeatIntervalls) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for HeartBeatIntervalls
impl StructuralEq for HeartBeatIntervalls
impl StructuralPartialEq for HeartBeatIntervalls
Auto Trait Implementations§
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