#[non_exhaustive]pub enum RejectReason {
Busy,
Banned {
reason: String,
},
UnknownModule,
MaxClients,
Custom {
code: u8,
message: String,
},
}Expand description
Why a link attempt was rejected.
This enum is intentionally kept protocol-agnostic; the reflector’s per-protocol endpoints translate each variant into the correct wire-level NAK (or silent drop, for protocols without one).
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 banlisted.
UnknownModule
Module is not configured on this reflector.
MaxClients
Per-module max client count exceeded.
Custom
Custom rejection.
Implementations§
Source§impl RejectReason
impl RejectReason
Sourcepub fn into_core_reason(self) -> ClientRejectedReason
pub fn into_core_reason(self) -> ClientRejectedReason
Convert this reject reason into the core-level
[ClientRejectedReason] surfaced on ServerEvent.
Variants map one-to-one and preserve any carried strings.
Trait Implementations§
Source§impl Clone for RejectReason
impl Clone for RejectReason
Source§fn clone(&self) -> RejectReason
fn clone(&self) -> RejectReason
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 RejectReason
impl RefUnwindSafe for RejectReason
impl Send for RejectReason
impl Sync for RejectReason
impl Unpin for RejectReason
impl UnwindSafe for RejectReason
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