[][src]Trait harmony_rust_sdk::api::auth::v1::auth_service_server::AuthService

pub trait AuthService: Send + Sync + 'static {
    type StreamStepsStream: Stream<Item = Result<AuthStep, Status>> + Send + Sync + 'static;
#[must_use]    pub fn federate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<FederateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<FederateReply>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn login_federated<'life0, 'async_trait>(
        &'life0 self,
        request: Request<LoginFederatedRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Session>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn key<'life0, 'async_trait>(
        &'life0 self,
        request: Request<()>
    ) -> Pin<Box<dyn Future<Output = Result<Response<KeyReply>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn begin_auth<'life0, 'async_trait>(
        &'life0 self,
        request: Request<()>
    ) -> Pin<Box<dyn Future<Output = Result<Response<BeginAuthResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn next_step<'life0, 'async_trait>(
        &'life0 self,
        request: Request<NextStepRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AuthStep>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn step_back<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StepBackRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AuthStep>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn stream_steps<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StreamStepsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamStepsStream>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Generated trait containing gRPC methods that should be implemented for use with AuthServiceServer.

Associated Types

type StreamStepsStream: Stream<Item = Result<AuthStep, Status>> + Send + Sync + 'static[src]

Server streaming response type for the StreamSteps method.

Loading content...

Required methods

#[must_use]pub fn federate<'life0, 'async_trait>(
    &'life0 self,
    request: Request<FederateRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<FederateReply>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn login_federated<'life0, 'async_trait>(
    &'life0 self,
    request: Request<LoginFederatedRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Session>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn key<'life0, 'async_trait>(
    &'life0 self,
    request: Request<()>
) -> Pin<Box<dyn Future<Output = Result<Response<KeyReply>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn begin_auth<'life0, 'async_trait>(
    &'life0 self,
    request: Request<()>
) -> Pin<Box<dyn Future<Output = Result<Response<BeginAuthResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn next_step<'life0, 'async_trait>(
    &'life0 self,
    request: Request<NextStepRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<AuthStep>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn step_back<'life0, 'async_trait>(
    &'life0 self,
    request: Request<StepBackRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<AuthStep>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn stream_steps<'life0, 'async_trait>(
    &'life0 self,
    request: Request<StreamStepsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamStepsStream>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...