ts_derp 0.4.0

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

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

/// Empty message to keep the connection alive.
#[derive(Debug, Copy, Clone, PartialEq, KnownLayout, Immutable, IntoBytes, FromBytes)]
#[repr(C)]
#[deprecated = "use Ping/Pong instead"]
pub struct KeepAlive;

#[allow(deprecated)]
impl Body for KeepAlive {
    const FRAME_TYPE: FrameType = FrameType::KeepAlive;
}