struct RelayClientInner {
client_keypair_tls: KeyPair,
client_keypair_inner: Arc<KeyPair>,
connection: Connection,
blob_service: OnceCell<Arc<BlobService>>,
persistence_manager: Arc<MessagePersistenceManager>,
session_manager: SessionManager<SqliteMessageStorage, MessagePersistenceManager>,
storage: Arc<SqliteMessageStorage>,
endpoint: Endpoint,
}Fields§
§client_keypair_tls: KeyPair§client_keypair_inner: Arc<KeyPair>§connection: Connection§blob_service: OnceCell<Arc<BlobService>>§persistence_manager: Arc<MessagePersistenceManager>§session_manager: SessionManager<SqliteMessageStorage, MessagePersistenceManager>§storage: Arc<SqliteMessageStorage>§endpoint: EndpointImplementations§
Source§impl RelayClientInner
impl RelayClientInner
async fn close(&self)
Sourceasync fn connect_with_transport_keys(
client_keypair_tls: &KeyPair,
client_keypair_inner: &KeyPair,
server_addr: SocketAddr,
server_public_key: &VerifyingKey,
) -> Result<(Endpoint, Connection)>
async fn connect_with_transport_keys( client_keypair_tls: &KeyPair, client_keypair_inner: &KeyPair, server_addr: SocketAddr, server_public_key: &VerifyingKey, ) -> Result<(Endpoint, Connection)>
Connect to relay server with transport keys and return the connection
Source§impl RelayClientInner
impl RelayClientInner
pub async fn blob_service(&self) -> Result<&Arc<BlobService>>
Auto Trait Implementations§
impl !Freeze for RelayClientInner
impl !RefUnwindSafe for RelayClientInner
impl Send for RelayClientInner
impl Sync for RelayClientInner
impl Unpin for RelayClientInner
impl !UnwindSafe for RelayClientInner
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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