pub struct HomeserverApp { /* private fields */ }Expand description
Homeserver with all bells and whistles. Core + Admin + Metrics servers.
When dropped, the homeserver will stop.
Implementations§
Source§impl HomeserverApp
impl HomeserverApp
Sourcepub async fn start_with_persistent_data_dir_path(
dir_path: PathBuf,
) -> Result<Self>
pub async fn start_with_persistent_data_dir_path( dir_path: PathBuf, ) -> Result<Self>
Run the homeserver with configurations from a data directory.
Sourcepub async fn start_with_persistent_data_dir(
dir: PersistentDataDir,
) -> Result<Self>
pub async fn start_with_persistent_data_dir( dir: PersistentDataDir, ) -> Result<Self>
Run the homeserver with configurations from a data directory.
Sourcepub async fn start(context: AppContext) -> Result<Self>
pub async fn start(context: AppContext) -> Result<Self>
Run a Homeserver
Sourcepub fn client_server(&self) -> &ClientServer
pub fn client_server(&self) -> &ClientServer
Get the core of the homeserver app.
Sourcepub fn admin_server(&self) -> Option<&AdminServer>
pub fn admin_server(&self) -> Option<&AdminServer>
Get the admin server of the homeserver app.
Sourcepub fn metrics_server(&self) -> Option<&MetricsServer>
pub fn metrics_server(&self) -> Option<&MetricsServer>
Get the metrics server of the homeserver app.
Sourcepub fn public_key(&self) -> PublicKey
pub fn public_key(&self) -> PublicKey
Returns the public_key of this server.
Sourcepub fn icann_http_url(&self) -> Url
pub fn icann_http_url(&self) -> Url
Returns the https://<server public key> url
Auto Trait Implementations§
impl Freeze for HomeserverApp
impl !RefUnwindSafe for HomeserverApp
impl Send for HomeserverApp
impl Sync for HomeserverApp
impl Unpin for HomeserverApp
impl UnsafeUnpin for HomeserverApp
impl !UnwindSafe for HomeserverApp
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