lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

endpoint.rs (397B)


      1 //! Transport endpoint identity and validation.
      2 
      3 pub use crate::target::{EndpointUri, TargetLabel, TargetScope};
      4 
      5 /// Maximum encoded endpoint URI length.
      6 pub const ENDPOINT_URI_MAX_BYTES: usize = 2_048;
      7 
      8 /// Maximum encoded target scope length.
      9 pub const TARGET_SCOPE_MAX_BYTES: usize = 128;
     10 
     11 /// Maximum encoded human-readable target label length.
     12 pub const TARGET_LABEL_MAX_BYTES: usize = 128;