pub struct IdentityServiceImpl { /* private fields */ }Expand description
External API service implementation providing key-value store operations. This service handles client requests for getting and setting values in the distributed store.
§Responsibilities
- Ensure consistency through Raft consensus
§Protocol Safety
This service implements the client-facing API and should validate all inputs before processing them through the Raft consensus protocol.
Implementations§
Source§impl IdentityServiceImpl
impl IdentityServiceImpl
Sourcepub fn new(
raft_node: Raft<TypeConfig>,
state_machine_store: Arc<FjallStateMachine>,
) -> Self
pub fn new( raft_node: Raft<TypeConfig>, state_machine_store: Arc<FjallStateMachine>, ) -> Self
Creates a new instance of the API service
§Arguments
raft_node- The Raft node instance this service will usestate_machine_store- The state machine store for reading data
Trait Implementations§
Source§impl IdentityService for IdentityServiceImpl
impl IdentityService for IdentityServiceImpl
Source§fn set<'life0, 'async_trait>(
&'life0 self,
request: Request<SetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PbResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set<'life0, 'async_trait>(
&'life0 self,
request: Request<SetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PbResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for IdentityServiceImpl
impl !RefUnwindSafe for IdentityServiceImpl
impl Send for IdentityServiceImpl
impl Sync for IdentityServiceImpl
impl Unpin for IdentityServiceImpl
impl UnsafeUnpin for IdentityServiceImpl
impl !UnwindSafe for IdentityServiceImpl
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> 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