pub struct AuthenticationChallengeResponse {
pub signature: WampString,
pub extra: WampDict,
}Expand description
This is what wamp-async-rs users are expected to return from on_challenge_handler
during the authentication flow.
See also Self::with_signature shortcut, and
crate::Client::join_realm_with_authentication for usage example.
Fields§
§signature: WampString§extra: WampDictImplementations§
Source§impl AuthenticationChallengeResponse
impl AuthenticationChallengeResponse
Sourcepub fn with_signature(signature: WampString) -> Self
pub fn with_signature(signature: WampString) -> Self
This is a shortcut for a simple authentication flow like Ticket-based Authentication.
You may return a shared-secret as following:
AuthenticationChallengeResponse::with_signature("shared-secret".into())Auto Trait Implementations§
impl Freeze for AuthenticationChallengeResponse
impl RefUnwindSafe for AuthenticationChallengeResponse
impl Send for AuthenticationChallengeResponse
impl Sync for AuthenticationChallengeResponse
impl Unpin for AuthenticationChallengeResponse
impl UnwindSafe for AuthenticationChallengeResponse
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