Struct nostr_sdk_sqlite::store::Store
source · pub struct Store { /* private fields */ }
Expand description
Store
Implementations§
source§impl Store
impl Store
sourcepub fn insert_relay(
&self,
url: Url,
proxy: Option<SocketAddr>
) -> Result<(), Error>
pub fn insert_relay( &self, url: Url, proxy: Option<SocketAddr> ) -> Result<(), Error>
Insert new relay
sourcepub fn get_relays(
&self,
enabled: bool
) -> Result<Vec<(Url, Option<SocketAddr>)>, Error>
pub fn get_relays( &self, enabled: bool ) -> Result<Vec<(Url, Option<SocketAddr>)>, Error>
Get relays