pub struct ClientServer { /* private fields */ }Expand description
A Pubky homeserver with ICANN HTTP and Pubky TLS servers.
Implementations§
Source§impl ClientServer
impl ClientServer
Sourcepub async fn start_with_persistent_data_dir_path(
dir_path: PathBuf,
) -> Result<Self, ClientServerBuildError>
pub async fn start_with_persistent_data_dir_path( dir_path: PathBuf, ) -> Result<Self, ClientServerBuildError>
Run the homeserver with configurations from a data directory.
Sourcepub async fn start_with_persistent_data_dir(
dir: PersistentDataDir,
) -> Result<Self, ClientServerBuildError>
pub async fn start_with_persistent_data_dir( dir: PersistentDataDir, ) -> Result<Self, ClientServerBuildError>
Run the homeserver with configurations from a data directory.
Sourcepub async fn start(context: AppContext) -> Result<Self, ClientServerBuildError>
pub async fn start(context: AppContext) -> Result<Self, ClientServerBuildError>
Start homeserver services with the given application context.
Sourcepub fn icann_http_url_string(&self) -> String
pub fn icann_http_url_string(&self) -> String
Get the URL of the icann http server.
Sourcepub fn pubky_tls_dns_url_string(&self) -> String
pub fn pubky_tls_dns_url_string(&self) -> String
Get the URL of the pubky tls server with the Pubky DNS name.
Sourcepub fn pubky_tls_ip_url_ring(&self) -> String
pub fn pubky_tls_ip_url_ring(&self) -> String
Get the URL of the pubky tls server with the Pubky IP address.
Trait Implementations§
Source§impl Drop for ClientServer
impl Drop for ClientServer
Auto Trait Implementations§
impl Freeze for ClientServer
impl !RefUnwindSafe for ClientServer
impl Send for ClientServer
impl Sync for ClientServer
impl Unpin for ClientServer
impl UnsafeUnpin for ClientServer
impl !UnwindSafe for ClientServer
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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