mod discovery;
mod handshake;
pub use discovery::{
detect_from_attrs, detect_from_html_meta, detect_pua_heuristic, Detection, DetectionSource,
};
pub use handshake::{
negotiate, CapabilitySet, HandshakeOffer, HandshakeReply, DEFAULT_CAPABILITIES,
};
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum CapabilityProfile {
Minimal,
Standard,
Visual,
Full,
}
impl CapabilityProfile {
pub const fn as_str(self) -> &'static str {
match self {
Self::Minimal => "DSK_MINIMAL",
Self::Standard => "DSK_STANDARD",
Self::Visual => "DSK_VISUAL",
Self::Full => "DSK_FULL",
}
}
}