pub struct Cell { /* private fields */ }Expand description
A Cell represents a private enclosure in which the data and applications of a user are hosted. A Cell resides on multiple nodes.
Implementations§
Source§impl Cell
impl Cell
pub fn from_config( config: CellConfig, local_node: LocalNode, ) -> Result<EitherCell, Error>
pub fn from_directory( dir: impl Into<DynDirectory>, local_node: LocalNode, ) -> Result<EitherCell, Error>
pub fn from_local_node(local_node: LocalNode) -> Result<Vec<EitherCell>, Error>
pub fn from_local_node_directory( dir: impl Into<DynDirectory>, ) -> Result<(Vec<EitherCell>, LocalNode), Error>
pub fn id(&self) -> &CellId
pub fn name(&self) -> &str
pub fn local_node(&self) -> &LocalNode
pub fn local_node_has_role(&self, role: CellNodeRole) -> bool
pub fn public_key(&self) -> &PublicKey
pub fn config(&self) -> &CellConfig
pub fn nodes(&self) -> CellNodesRead<'_>
pub fn nodes_mut(&self) -> CellNodesWrite<'_>
pub fn schemas(&self) -> &Arc<Registry>
pub fn applications(&self) -> &CellApplications
pub fn directory(&self) -> &DynDirectory
pub fn chain_directory(&self) -> DynDirectory
pub fn store_directory(&self) -> DynDirectory
pub fn apps_directory(&self) -> DynDirectory
pub fn app_directory( &self, app_manifest: &Manifest, ) -> Result<DynDirectory, Error>
pub fn temp_directory(&self) -> DynDirectory
pub fn save_config(&self, config: &CellConfig) -> Result<(), Error>
pub fn write_cell_config( dir: &DynDirectory, config: &CellConfig, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cell
impl !RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl !UnwindSafe for Cell
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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