pub struct ClientDeny {
pub cid: u64,
pub kid: u64,
pub reason: String,
pub client_reason: Option<String>,
}Expand description
Denial of a >CLIENT:CONNECT or >CLIENT:REAUTH request.
Wire format: client-deny {CID} {KID} "reason" ["client-reason"]
Use the generated builder for ergonomic construction:
let deny = ClientDeny::builder()
.cid(42)
.kid(0)
.reason("expired certificate")
.client_reason("Your certificate has expired.")
.build();Fields§
§cid: u64Client ID from the >CLIENT: notification.
kid: u64Key ID from the >CLIENT: notification.
reason: StringServer-side reason string (logged but not sent to client).
client_reason: Option<String>Optional message sent to the client as part of AUTH_FAILED.
Implementations§
Source§impl ClientDeny
impl ClientDeny
Sourcepub fn builder() -> ClientDenyBuilder
pub fn builder() -> ClientDenyBuilder
Create an instance of ClientDeny using the builder syntax
Trait Implementations§
Source§impl Clone for ClientDeny
impl Clone for ClientDeny
Source§fn clone(&self) -> ClientDeny
fn clone(&self) -> ClientDeny
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientDeny
impl Debug for ClientDeny
impl Eq for ClientDeny
Source§impl PartialEq for ClientDeny
impl PartialEq for ClientDeny
impl StructuralPartialEq for ClientDeny
Auto Trait Implementations§
impl Freeze for ClientDeny
impl RefUnwindSafe for ClientDeny
impl Send for ClientDeny
impl Sync for ClientDeny
impl Unpin for ClientDeny
impl UnsafeUnpin for ClientDeny
impl UnwindSafe for ClientDeny
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