ClientFirstMessageExtra

Struct ClientFirstMessageExtra 

Source
pub struct ClientFirstMessageExtra {
    pub role: String,
}
Expand description

The extra data for the client’s first message of the undisputed authentication method.

Fields§

§role: String

Trait Implementations§

Source§

impl ClientAuthenticator<ClientFirstMessageExtra, ServerFirstMessageExtra, ClientFinalMessageExtra, ServerFinalMessageExtra> for ClientAuthenticator

Source§

fn auth_method(&self) -> AuthMethod

Authentication method.
Source§

fn hello<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ClientFirstMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Generates the client’s first message for authentication.
Source§

fn handle_challenge<'life0, 'async_trait>( &'life0 self, __arg1: ServerFirstMessage, ) -> Pin<Box<dyn Future<Output = Result<ClientFinalMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handles the server’s authentication challenge.
Source§

fn verify_signature<'life0, 'async_trait>( &'life0 self, __arg1: ServerFinalMessage, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Verifies the server’s signature.
Source§

impl Debug for ClientFirstMessageExtra

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ServerAuthenticator<ClientFirstMessageExtra, ServerFirstMessageExtra, ClientFinalMessageExtra, ServerFinalMessageExtra> for ServerAuthenticator

Source§

fn auth_method(&self) -> AuthMethod

Authentication method.
Source§

fn challenge<'life0, 'async_trait>( &'life0 self, message: ClientFirstMessage, ) -> Pin<Box<dyn Future<Output = Result<ServerFirstMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Generates the authentication challenge to the client.
Source§

fn authenticate<'life0, 'async_trait>( &'life0 self, __arg1: ClientFinalMessage, ) -> Pin<Box<dyn Future<Output = Result<ServerFinalMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Authenticates the client’s response to the challenge.
Source§

impl WampDeserialize for ClientFirstMessageExtra

Source§

fn wamp_deserialize(value: Value) -> Result<Self, WampDeserializeError>

Deserializes the object from a WAMP value.
Source§

impl WampSerialize for ClientFirstMessageExtra

Source§

fn wamp_serialize(self) -> Result<Value, WampSerializeError>

Serializes the object into a WAMP value.

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V