Struct nip_70::Nip70Server
source · pub struct Nip70Server { /* private fields */ }
Implementations§
source§impl Nip70Server
impl Nip70Server
sourcepub fn new(nip70: Arc<dyn Nip70>) -> Result<Self>
pub fn new(nip70: Arc<dyn Nip70>) -> Result<Self>
Creates a new Nip70Server
instance and binds to a Unix domain socket.
DO NOT pass in a Nip70Client
instance here, as it will cause the server
to handle all incoming requests by making a new request to itself, which
will result in infinite looping.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Nip70Server
impl Send for Nip70Server
impl Sync for Nip70Server
impl Unpin for Nip70Server
impl UnwindSafe for Nip70Server
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