dstar_gateway_core/
lib.rs1pub mod codec;
19pub mod dprs;
20pub mod error;
21pub mod header;
22pub mod hosts;
23pub mod session;
24pub mod slowdata;
25pub mod types;
26pub mod validator;
27pub mod voice;
28
29pub use dprs::{DprsError, DprsReport, Latitude, Longitude, compute_crc, encode_dprs, parse_dprs};
30pub use error::{
31 DExtraError, DPlusError, DcsError, EncodeError, Error, IoOperation, ProtocolError, StateError,
32 TimeoutError,
33};
34pub use header::{DStarHeader, ENCODED_LEN, crc_ccitt};
35pub use hosts::{HostEntry, HostFile};
36pub use session::client::{
37 AnySession, Authenticated, ClientState, ClientStateKind, Closed, Configured, Connected,
38 Connecting, DExtra, DPlus, Dcs, DisconnectReason, Disconnecting, Event, Failed, Missing,
39 NoAuthRequired, Protocol, Provided, Session, SessionBuilder, SessionCore, VoiceEndReason,
40};
41pub use session::server::{
42 ClientRejectedReason, ForwardableFrame, ServerEvent, ServerSession, ServerSessionCore,
43};
44pub use session::{Driver, Transmit};
45pub use slowdata::{
46 MAX_MESSAGE_LEN, SlowDataAssembler, SlowDataBlock, SlowDataBlockKind, SlowDataError,
47 SlowDataText, SlowDataTextCollector, descramble, encode_text_message, scramble,
48};
49pub use types::{
50 BandLetter, Callsign, Module, ProtocolKind, ReflectorCallsign, StreamId, Suffix, TypeError,
51};
52pub use validator::{
53 AuthHostSkipReason, CallsignField, Diagnostic, DiagnosticSink, NullSink, TracingSink, VecSink,
54};
55pub use voice::{AMBE_SILENCE, DSTAR_SYNC_BYTES, VoiceFrame};
56
57#[cfg(test)]
62use proptest as _;
63
64#[cfg(test)]
67use trybuild as _;