pub struct Heartbeat(/* private fields */);Expand description
The Heartbeat (35=0) message.
Implementations§
Source§impl Heartbeat
impl Heartbeat
pub const MSG_TYPE: &[u8] = b"0"
pub const KNOWN_TAGS: KnownTags<'static>
pub fn from_raw(raw: RawMessage) -> Self
pub fn raw(&self) -> &RawMessage
pub fn header(&self) -> Header<'_>
pub fn trailer(&self) -> Trailer<'_>
Sourcepub fn test_req_id(&self) -> Result<Option<&str>, InvalidValue>
pub fn test_req_id(&self) -> Result<Option<&str>, InvalidValue>
The TestReqID (112) field.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Heartbeat
impl Forget for Heartbeat
impl Move for Heartbeat
impl RefUnwindSafe for Heartbeat
impl Send for Heartbeat
impl Sync for Heartbeat
impl Unpin for Heartbeat
impl UnsafeUnpin for Heartbeat
impl UnwindSafe for Heartbeat
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