pub enum Passcode {
Verified(u16),
ReceiveOnly,
}Expand description
APRS-IS authentication passcode.
Per the APRS-IS authentication spec, a valid passcode is a 15-bit
positive integer computed from the callsign via the public
aprs_is_passcode hash. Clients that don’t hold a verified passcode
(e.g. read-only monitors) may authenticate as “receive-only” which
maps to the wire value -1.
This enum replaces the previous i32 field that used -1 as a magic
sentinel, making illegal states unrepresentable.
Variants§
Verified(u16)
A verified 15-bit passcode computed from the station callsign.
ReceiveOnly
Receive-only connection — the server will accept incoming packets from us but will not forward any packets we transmit to RF.
Implementations§
Trait Implementations§
impl Copy for Passcode
impl Eq for Passcode
impl StructuralPartialEq for Passcode
Auto Trait Implementations§
impl Freeze for Passcode
impl RefUnwindSafe for Passcode
impl Send for Passcode
impl Sync for Passcode
impl Unpin for Passcode
impl UnwindSafe for Passcode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more