pub struct Nip46OverNip55Client { /* private fields */ }
Expand description
NIP-46 client that can make requests to a NIP-46 server running over NIP-55.
Implementations§
Source§impl Nip46OverNip55Client
impl Nip46OverNip55Client
Sourcepub fn new(uds_address: impl Into<String>) -> Self
pub fn new(uds_address: impl Into<String>) -> Self
Create a new NIP-46 client that will communicate with a NIP-46 server over NIP-55 on the specified Unix domain socket address.
Sourcepub async fn sign_event(
&self,
unsigned_event: UnsignedEvent,
user_pubkey: PublicKey,
) -> Result<Event, Nip46OverNip55ClientError>
pub async fn sign_event( &self, unsigned_event: UnsignedEvent, user_pubkey: PublicKey, ) -> Result<Event, Nip46OverNip55ClientError>
Sign an event using the NIP-46 server over NIP-55.
Auto Trait Implementations§
impl Freeze for Nip46OverNip55Client
impl RefUnwindSafe for Nip46OverNip55Client
impl Send for Nip46OverNip55Client
impl Sync for Nip46OverNip55Client
impl Unpin for Nip46OverNip55Client
impl UnwindSafe for Nip46OverNip55Client
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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