pub(in http) struct NodeOperations<R, T> {
repository: R,
token_issuer: T,
}Fields§
§repository: R§token_issuer: TImplementations§
Source§impl<R, T> NodeOperations<R, T>where
R: NodeRepository,
T: BeaconTokenIssuer,
impl<R, T> NodeOperations<R, T>where
R: NodeRepository,
T: BeaconTokenIssuer,
pub(in http) async fn register( &self, public_key: &NodePublicKey, request: &NodeRegistrationRequest, ) -> Result<NodeRegistrationResponse, NodeOperationError>
pub(in http) async fn refresh_token( &self, public_key: &NodePublicKey, ) -> Result<NodeTokenResponse, NodeOperationError>
pub(in http) async fn unlink( &self, public_key: &NodePublicKey, ) -> Result<NodeUnlinkResponse, NodeOperationError>
Auto Trait Implementations§
impl<R, T> Freeze for NodeOperations<R, T>
impl<R, T> RefUnwindSafe for NodeOperations<R, T>where
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<R, T> Send for NodeOperations<R, T>
impl<R, T> Sync for NodeOperations<R, T>
impl<R, T> Unpin for NodeOperations<R, T>
impl<R, T> UnsafeUnpin for NodeOperations<R, T>where
R: UnsafeUnpin,
T: UnsafeUnpin,
impl<R, T> UnwindSafe for NodeOperations<R, T>where
R: UnwindSafe,
T: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more