pub struct PreparedApp {
pub args: AppArgs,
pub port: u16,
pub web_port: u16,
pub identity: Arc<Identity>,
pub db: Db,
pub encryption: Option<StorageEncryption>,
}Expand description
Contains all the necessary components for the application to run.
This struct is created by the prepare function and passed to the
appropriate run function (either for a client or a mailbox node).
Fields§
§args: AppArgsThe command-line arguments.
port: u16The port to listen on for P2P connections.
web_port: u16The port for the Web UI.
identity: Arc<Identity>The user’s identity.
db: DbThe database instance.
encryption: Option<StorageEncryption>The encryption key for the storage, if enabled.
Auto Trait Implementations§
impl Freeze for PreparedApp
impl !RefUnwindSafe for PreparedApp
impl Send for PreparedApp
impl Sync for PreparedApp
impl Unpin for PreparedApp
impl !UnwindSafe for PreparedApp
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> 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