#[non_exhaustive]pub enum ClientRejectedReason {
Busy,
Banned {
reason: String,
},
UnknownModule,
MaxClients,
Custom {
code: u8,
message: String,
},
}Expand description
Reason a reflector rejected or evicted a client.
Stripped of any protocol-specific NAK code. Carries a human-readable reason so consumers (logs, metrics, tests) can explain the decision without needing to know which authorizer or health check fired.
This mirrors dstar_gateway_server::RejectReason at the event
layer so the core can surface rejections without a cross-crate
dependency on the server-side authorizer types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Busy
Reflector at capacity.
Banned
Callsign or IP is banlisted.
UnknownModule
The requested module is not configured on this reflector.
MaxClients
Per-module max client count exceeded.
Custom
Custom rejection.
Trait Implementations§
Source§impl Clone for ClientRejectedReason
impl Clone for ClientRejectedReason
Source§fn clone(&self) -> ClientRejectedReason
fn clone(&self) -> ClientRejectedReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientRejectedReason
impl RefUnwindSafe for ClientRejectedReason
impl Send for ClientRejectedReason
impl Sync for ClientRejectedReason
impl Unpin for ClientRejectedReason
impl UnwindSafe for ClientRejectedReason
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