pub struct RemoteAgent { /* private fields */ }Implementations§
Source§impl RemoteAgent
impl RemoteAgent
pub fn new(name: Arc<str>, cert: Arc<[CertificateDer<'static>]>) -> RemoteAgent
pub fn name(&self) -> &str
pub fn cert_chain(&self) -> &[CertificateDer<'static>]
pub fn public_key(&self) -> SubjectPublicKeyInfoDer<'_>
pub fn verify( &self, scheme: SignatureScheme, data: &[u8], signature: &[u8], ) -> Result<bool, VerifyError>
Trait Implementations§
Source§impl AsRef<Arc<[CertificateDer<'static>]>> for RemoteAgent
impl AsRef<Arc<[CertificateDer<'static>]>> for RemoteAgent
Source§fn as_ref(&self) -> &Arc<[CertificateDer<'static>]>
fn as_ref(&self) -> &Arc<[CertificateDer<'static>]>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for RemoteAgent
impl Clone for RemoteAgent
Source§fn clone(&self) -> RemoteAgent
fn clone(&self) -> RemoteAgent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RemoteAgent
impl RefUnwindSafe for RemoteAgent
impl Send for RemoteAgent
impl Sync for RemoteAgent
impl Unpin for RemoteAgent
impl UnwindSafe for RemoteAgent
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)