pub struct SignerClient { /* private fields */ }Expand description
A client that communicates with the oaid-signer daemon over a Unix socket.
Implementations§
Source§impl SignerClient
impl SignerClient
Sourcepub async fn connect(path: &str) -> Result<Self, Error>
pub async fn connect(path: &str) -> Result<Self, Error>
Connect to the signer daemon at the given Unix socket path.
This validates that the socket is reachable but does not keep a persistent connection; each signing request opens a new connection.
Sourcepub fn new(path: &str) -> Self
pub fn new(path: &str) -> Self
Create a client without verifying connectivity.
Useful when the daemon may not be running yet.
Auto Trait Implementations§
impl Freeze for SignerClient
impl RefUnwindSafe for SignerClient
impl Send for SignerClient
impl Sync for SignerClient
impl Unpin for SignerClient
impl UnsafeUnpin for SignerClient
impl UnwindSafe for SignerClient
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