[−][src]Struct tink_testing_server::proto::signature_client::SignatureClient
Service to sign and verify signatures.
Fields
inner: Grpc<T>
Implementations
impl SignatureClient<Channel>
[src][−]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src][−]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> SignatureClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src][−]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn sign<'_>(
&'_ mut self,
request: impl IntoRequest<SignatureSignRequest>
) -> Result<Response<SignatureSignResponse>, Status>
[src][−]
&'_ mut self,
request: impl IntoRequest<SignatureSignRequest>
) -> Result<Response<SignatureSignResponse>, Status>
Computes the signature for data
pub async fn verify<'_>(
&'_ mut self,
request: impl IntoRequest<SignatureVerifyRequest>
) -> Result<Response<SignatureVerifyResponse>, Status>
[src][−]
&'_ mut self,
request: impl IntoRequest<SignatureVerifyRequest>
) -> Result<Response<SignatureVerifyResponse>, Status>
Verifies that signature is a digital signature for data
Trait Implementations
impl<T: Clone> Clone for SignatureClient<T>
[src][+]
impl<T> Debug for SignatureClient<T>
[src][+]
Auto Trait Implementations
impl<T> !RefUnwindSafe for SignatureClient<T>
impl<T> Send for SignatureClient<T> where
T: Send,
T: Send,
impl<T> Sync for SignatureClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SignatureClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for SignatureClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Conv for T
[+]
impl<T> FmtForward for T
[+]
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> Pipe for T
[+]
impl<T> PipeAsRef for T
[+]
impl<T> PipeBorrow for T
[+]
impl<T> PipeDeref for T
[+]
impl<T> PipeRef for T
[+]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Tap for T
[+]
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
[+]
U: ?Sized,
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
[+]
U: ?Sized,
impl<T> TapDeref for T
[+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> TryConv for T
[+]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,