Struct wamp_async::AuthenticationChallengeResponse[][src]

pub struct AuthenticationChallengeResponse {
    pub signature: WampString,
    pub extra: WampDict,
}

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: WampStringextra: WampDict

Implementations

impl AuthenticationChallengeResponse[src]

pub fn with_signature(signature: WampString) -> Self[src]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,