pub struct RelayClient {
inner: Arc<RelayClientInner>,
}Expand description
A Zoe Relay Client with integrated message persistence
Fields§
§inner: Arc<RelayClientInner>Implementations§
Source§impl RelayClient
impl RelayClient
Sourcepub fn public_key(&self) -> VerifyingKey
pub fn public_key(&self) -> VerifyingKey
Get the client’s inner protocol public key
Sourcepub fn tls_public_key(&self) -> VerifyingKey
pub fn tls_public_key(&self) -> VerifyingKey
Get the client’s TLS public key (Ed25519 or ML-DSA-44)
pub fn connection(&self) -> &Connection
pub fn storage(&self) -> &Arc<SqliteMessageStorage>
pub async fn close(&self)
Sourcepub async fn persistence_manager(&self) -> &MessagePersistenceManager
pub async fn persistence_manager(&self) -> &MessagePersistenceManager
Get access to the message persistence manager
pub async fn session_manager( &self, ) -> &SessionManager<SqliteMessageStorage, MessagePersistenceManager>
pub async fn blob_service(&self) -> Result<&Arc<BlobService>>
Trait Implementations§
Source§impl Clone for RelayClient
impl Clone for RelayClient
Source§fn clone(&self) -> RelayClient
fn clone(&self) -> RelayClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RelayClient
impl !RefUnwindSafe for RelayClient
impl Send for RelayClient
impl Sync for RelayClient
impl Unpin for RelayClient
impl !UnwindSafe for RelayClient
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