pub struct AuthService<S> { /* private fields */ }Expand description
在进入业务实现前统一做 NonceCredential 校验的包装服务
Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for AuthService<S>
impl<S: Clone> Clone for AuthService<S>
Source§fn clone(&self) -> AuthService<S>
fn clone(&self) -> AuthService<S>
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<S> NodeAdminService for AuthService<S>
impl<S> NodeAdminService for AuthService<S>
Source§fn update_config<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateConfigResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_config<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateConfigResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
———— Configuration management ————
fn get_config<'life0, 'async_trait>(
&'life0 self,
request: Request<GetConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetConfigResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn create_realm<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateRealmRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateRealmResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_realm<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateRealmRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateRealmResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
———— Realm management ————
fn get_realm<'life0, 'async_trait>(
&'life0 self,
request: Request<GetRealmRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetRealmResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_realm<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateRealmRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateRealmResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_realm<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteRealmRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteRealmResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_realms<'life0, 'async_trait>(
&'life0 self,
request: Request<ListRealmsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListRealmsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_node_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetNodeInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_node_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetNodeInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
———— Node control ————
fn shutdown<'life0, 'async_trait>(
&'life0 self,
request: Request<ShutdownRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ShutdownResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn list_config_overrides<'life0, 'async_trait>(
&'life0 self,
request: Request<ListConfigOverridesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListConfigOverridesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_config_overrides<'life0, 'async_trait>(
&'life0 self,
request: Request<ListConfigOverridesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListConfigOverridesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
———— Config override management (remote admin) ————
fn set_config_override<'life0, 'async_trait>(
&'life0 self,
request: Request<SetConfigOverrideRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetConfigOverrideResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_config_override<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteConfigOverrideRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteConfigOverrideResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<S> !RefUnwindSafe for AuthService<S>
impl<S> !UnwindSafe for AuthService<S>
impl<S> Freeze for AuthService<S>where
S: Freeze,
impl<S> Send for AuthService<S>where
S: Send,
impl<S> Sync for AuthService<S>where
S: Sync,
impl<S> Unpin for AuthService<S>where
S: Unpin,
impl<S> UnsafeUnpin for AuthService<S>where
S: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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