pub struct AllowAnonymous;Expand description
Accepts everyone as Principal::anonymous. Used when a surface does not
require authentication.
Trait Implementations§
Source§impl Clone for AllowAnonymous
impl Clone for AllowAnonymous
Source§fn clone(&self) -> AllowAnonymous
fn clone(&self) -> AllowAnonymous
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 moreSource§impl Debug for AllowAnonymous
impl Debug for AllowAnonymous
Source§impl Default for AllowAnonymous
impl Default for AllowAnonymous
Source§fn default() -> AllowAnonymous
fn default() -> AllowAnonymous
Returns the “default value” for a type. Read more
Source§impl IdentityProvider for AllowAnonymous
impl IdentityProvider for AllowAnonymous
Source§fn name(&self) -> &str
fn name(&self) -> &str
A short name recorded in
Principal::provider and logs.Source§fn authenticate(
&self,
_credentials: &Credentials,
) -> Result<Option<Principal>, AuthError>
fn authenticate( &self, _credentials: &Credentials, ) -> Result<Option<Principal>, AuthError>
Authenticates
credentials. Read moreAuto Trait Implementations§
impl Freeze for AllowAnonymous
impl RefUnwindSafe for AllowAnonymous
impl Send for AllowAnonymous
impl Sync for AllowAnonymous
impl Unpin for AllowAnonymous
impl UnsafeUnpin for AllowAnonymous
impl UnwindSafe for AllowAnonymous
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request