pub struct ZapRequest {
pub domain: String,
pub address: String,
pub mechanism: ZmqMechanism,
pub username: Option<String>,
pub password: Option<String>,
pub client_pubkey: Option<Vec<u8>>,
}Expand description
A request sent to the ZAP handler for authentication.
Fields§
§domain: StringZAP domain from the connecting socket’s options.
address: StringPeer’s remote address (IP:port string).
mechanism: ZmqMechanismZMTP mechanism in use.
username: Option<String>PLAIN username, if applicable.
password: Option<String>PLAIN password, if applicable.
client_pubkey: Option<Vec<u8>>CURVE client long-term public key (32 bytes), if mechanism is CURVE.
Trait Implementations§
Source§impl Clone for ZapRequest
impl Clone for ZapRequest
Source§fn clone(&self) -> ZapRequest
fn clone(&self) -> ZapRequest
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 ZapRequest
impl RefUnwindSafe for ZapRequest
impl Send for ZapRequest
impl Sync for ZapRequest
impl Unpin for ZapRequest
impl UnsafeUnpin for ZapRequest
impl UnwindSafe for ZapRequest
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