Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Threema/domain/libthreema/lib/src/csp/payload/     Datei vom 25.3.2026 mit Größe 683 B image not shown  

Quelle  mod.rs   Sprache: unbekannt

 
Spracherkennung für: .rs vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

//! Incoming/outgoing payloads.
use educe::Educe;
use libthreema_macros::Name;

use crate::{csp::CspProtocolError, utils::debug::debug_slice_length};

pub(super) mod handshake;
mod post_handshake;
pub use handshake::LoginAckData;
pub use post_handshake::*;

/// An encoded outgoing frame.
#[derive(Name, Educe)]
#[educe(Debug)]
pub struct OutgoingFrame(#[educe(Debug(method(debug_slice_length)))] pub Vec<u8>);

/// Encodes a message/payload into a frame that can be sent on the CSP transport stream.
pub(super) trait FrameEncoder {
    /// Encode the message/payload into a frame with the appropriate header.
    fn encode_frame(&self) -> Result<OutgoingFrame, CspProtocolError>;
}

[Dauer der Verarbeitung: 0.21 Sekunden, vorverarbeitet 2026-04-27]