pub struct TrustServerAuthentication;Expand description
Explicit trust authentication, which accepts every protocol-compatible client.
Trait Implementations§
Source§impl Clone for TrustServerAuthentication
impl Clone for TrustServerAuthentication
Source§fn clone(&self) -> TrustServerAuthentication
fn clone(&self) -> TrustServerAuthentication
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 moreimpl Copy for TrustServerAuthentication
Source§impl Debug for TrustServerAuthentication
impl Debug for TrustServerAuthentication
Source§impl Default for TrustServerAuthentication
impl Default for TrustServerAuthentication
Source§fn default() -> TrustServerAuthentication
fn default() -> TrustServerAuthentication
Returns the “default value” for a type. Read more
impl Eq for TrustServerAuthentication
Source§impl<Peer> ServerAuthentication<Peer> for TrustServerAuthentication
impl<Peer> ServerAuthentication<Peer> for TrustServerAuthentication
Source§type Identity = TrustIdentity
type Identity = TrustIdentity
Typed evidence produced by successful authentication.
Source§type Error = Infallible
type Error = Infallible
Application-defined authentication failure.
Source§fn start<'a>(
&'a mut self,
_request: ServerAuthenticationRequest<'a, Peer>,
) -> ServerAuthenticationFuture<'a, ServerAuthenticationAction<Self::Identity>, Self::Error>
fn start<'a>( &'a mut self, _request: ServerAuthenticationRequest<'a, Peer>, ) -> ServerAuthenticationFuture<'a, ServerAuthenticationAction<Self::Identity>, Self::Error>
Starts the application-driven authentication conversation.
Source§fn respond<'a>(
&'a mut self,
_request: ServerAuthenticationRequest<'a, Peer>,
_response: ServerAuthenticationResponse,
) -> ServerAuthenticationFuture<'a, ServerAuthenticationAction<Self::Identity>, Self::Error>
fn respond<'a>( &'a mut self, _request: ServerAuthenticationRequest<'a, Peer>, _response: ServerAuthenticationResponse, ) -> ServerAuthenticationFuture<'a, ServerAuthenticationAction<Self::Identity>, Self::Error>
Advances the conversation after one protocol response.
Source§impl ServerAuthenticationProvider for TrustServerAuthentication
impl ServerAuthenticationProvider for TrustServerAuthentication
Source§type Authentication = TrustServerAuthentication
type Authentication = TrustServerAuthentication
Per-connection policy type.
Source§fn create(&self) -> Self::Authentication
fn create(&self) -> Self::Authentication
Creates a fresh policy instance.
impl StructuralPartialEq for TrustServerAuthentication
Auto Trait Implementations§
impl Freeze for TrustServerAuthentication
impl RefUnwindSafe for TrustServerAuthentication
impl Send for TrustServerAuthentication
impl Sync for TrustServerAuthentication
impl Unpin for TrustServerAuthentication
impl UnsafeUnpin for TrustServerAuthentication
impl UnwindSafe for TrustServerAuthentication
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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