pub struct SignerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl SignerSynchronousProxy
impl SignerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SignerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SignerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn sign_hash(
&self,
hash: &[u8],
___deadline: MonotonicInstant,
) -> Result<SignerSignHashResult, Error>
pub fn sign_hash( &self, hash: &[u8], ___deadline: MonotonicInstant, ) -> Result<SignerSignHashResult, Error>
Sign the provided hash
with the factory provisioned key. On success
the result is returned in signature
. The signature must be of a type
that is supported by Weave, and must take the standard form of an ASN.1
DER SEQUENCE. This operation must support SHA1 and SHA256 hash values.
Sourcepub fn sign_hash_with_private_key(
&self,
hash: &[u8],
wrapped_private_key: &[u8],
___deadline: MonotonicInstant,
) -> Result<SignerSignHashWithPrivateKeyResult, Error>
pub fn sign_hash_with_private_key( &self, hash: &[u8], wrapped_private_key: &[u8], ___deadline: MonotonicInstant, ) -> Result<SignerSignHashWithPrivateKeyResult, Error>
Sign the provided hash
with the provided wrapped_private_key
. On
success, the result is returned in signature
. The signature must be
of a type that is supported by Weave, and must take the standard form
of an ASN.1 DER SEQUENCE. This operation must support SHA1 and SHA256
hash values.
Trait Implementations§
Source§impl Debug for SignerSynchronousProxy
impl Debug for SignerSynchronousProxy
Source§impl SynchronousProxy for SignerSynchronousProxy
impl SynchronousProxy for SignerSynchronousProxy
Source§type Proxy = SignerProxy
type Proxy = SignerProxy
The async proxy for the same protocol.
Source§type Protocol = SignerMarker
type Protocol = SignerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for SignerSynchronousProxy
impl RefUnwindSafe for SignerSynchronousProxy
impl Send for SignerSynchronousProxy
impl Sync for SignerSynchronousProxy
impl Unpin for SignerSynchronousProxy
impl UnwindSafe for SignerSynchronousProxy
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