ts_derp 0.4.0

tailscale derp client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};

use crate::frame::{Body, FrameType};

/// Indication that the client-server connection is unhealthy.
///
/// A UTF-8 string follows in the additional payload section which should be
/// interpreted as error text. An empty additional payload clears the error state.
#[derive(Debug, Copy, Clone, PartialEq, KnownLayout, Immutable, IntoBytes, FromBytes)]
#[repr(C)]
pub struct Health;

impl Body for Health {
    const FRAME_TYPE: FrameType = FrameType::Health;
}