Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

482 B
Raw Blame
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};

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

/// Indicate that this derp server is the client's preferred node.
#[derive(Debug, Copy, Clone, PartialEq, KnownLayout, Immutable, IntoBytes, FromBytes)]
#[repr(C)]
pub struct NotePreferred {
    /// Whether this is the client's home region (`0x1`) or not (`0x0`).
    pub is_home: u8,
}

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