pub struct HaproxyDisconnect {
pub status_code: u32,
pub message: String,
}Expand description
Frame HAPROXY-DISCONNECT
https://github.com/haproxy/haproxy/blob/master/doc/SPOE.txt#L956
3.2.8. Frame: HAPROXY-DISCONNECT
---------------------------------
If an error occurs, at anytime, from the HAProxy side, a HAPROXY-DISCONNECT
frame is sent with information describing the error. HAProxy will wait an
AGENT-DISCONNECT frame in reply. All other frames will be ignored. The agent
must then close the socket.
The payload of this frame is a KV-LIST. STREAM-ID and FRAME-ID are must be set
0.
Following items are mandatory in the KV-LIST:
* "status-code" <UINT32>
This is the code corresponding to the error.
* "message" <STRING>
This is a textual message describing the error.Fields§
§status_code: u32§message: StringImplementations§
Source§impl HaproxyDisconnect
impl HaproxyDisconnect
pub fn to_kv_list(&self) -> HashMap<String, TypedData>
Trait Implementations§
Source§impl Debug for HaproxyDisconnect
impl Debug for HaproxyDisconnect
Source§impl TryFrom<FramePayload<'_>> for HaproxyDisconnect
impl TryFrom<FramePayload<'_>> for HaproxyDisconnect
Auto Trait Implementations§
impl Freeze for HaproxyDisconnect
impl RefUnwindSafe for HaproxyDisconnect
impl Send for HaproxyDisconnect
impl Sync for HaproxyDisconnect
impl Unpin for HaproxyDisconnect
impl UnsafeUnpin for HaproxyDisconnect
impl UnwindSafe for HaproxyDisconnect
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