Struct holochain_types::app::RunningApp
source · [−]pub struct RunningApp(_);
Expand description
An active app
Implementations
sourceimpl RunningApp
impl RunningApp
sourcepub fn into_stopped(self, reason: StoppedAppReason) -> StoppedApp
pub fn into_stopped(self, reason: StoppedAppReason) -> StoppedApp
Convert to a StoppedApp with the given reason
sourcepub fn into_common(self) -> InstalledAppCommon
pub fn into_common(self) -> InstalledAppCommon
Move inner type out
Methods from Deref<Target = InstalledAppCommon>
sourcepub fn id(&self) -> &InstalledAppId
pub fn id(&self) -> &InstalledAppId
Accessor
sourcepub fn provisioned_cells(&self) -> impl Iterator<Item = (&AppRoleId, &CellId)>
pub fn provisioned_cells(&self) -> impl Iterator<Item = (&AppRoleId, &CellId)>
Accessor
sourcepub fn clone_cells(&self) -> impl Iterator<Item = (&CloneId, &CellId)>
pub fn clone_cells(&self) -> impl Iterator<Item = (&CloneId, &CellId)>
Accessor
sourcepub fn clone_cells_for_role_id(
&self,
role_id: &AppRoleId
) -> Option<&HashMap<CloneId, CellId>>
pub fn clone_cells_for_role_id(
&self,
role_id: &AppRoleId
) -> Option<&HashMap<CloneId, CellId>>
Accessor
sourcepub fn clone_cell_ids(&self) -> impl Iterator<Item = &CellId>
pub fn clone_cell_ids(&self) -> impl Iterator<Item = &CellId>
Accessor
sourcepub fn all_cells(&self) -> impl Iterator<Item = &CellId>
pub fn all_cells(&self) -> impl Iterator<Item = &CellId>
Iterator of all cells, both provisioned and cloned
sourcepub fn required_cells(&self) -> impl Iterator<Item = &CellId>
pub fn required_cells(&self) -> impl Iterator<Item = &CellId>
Iterator of all “required” cells, meaning Cells which must be running for this App to be able to run. The notion of “required cells” is not yet solidified, so for now this placeholder equates to “all cells”.
sourcepub fn role(&self, role_id: &AppRoleId) -> AppResult<&AppRoleAssignment>
pub fn role(&self, role_id: &AppRoleId) -> AppResult<&AppRoleAssignment>
Accessor for particular role
sourcepub fn roles(&self) -> &HashMap<AppRoleId, AppRoleAssignment>
pub fn roles(&self) -> &HashMap<AppRoleId, AppRoleAssignment>
Accessor
sourcepub fn add_clone(
&mut self,
role_id: &AppRoleId,
cell_id: &CellId
) -> AppResult<CloneId>
pub fn add_clone(
&mut self,
role_id: &AppRoleId,
cell_id: &CellId
) -> AppResult<CloneId>
Add a clone cell.
sourcepub fn get_clone_cell_id(&self, clone_cell_id: &CloneCellId) -> AppResult<CellId>
pub fn get_clone_cell_id(&self, clone_cell_id: &CloneCellId) -> AppResult<CellId>
Get a clone cell id from its clone id.
sourcepub fn get_clone_id(&self, clone_cell_id: &CloneCellId) -> AppResult<CloneId>
pub fn get_clone_id(&self, clone_cell_id: &CloneCellId) -> AppResult<CloneId>
Get the clone id from either clone or cell id.
sourcepub fn get_archived_clone_id(
&self,
clone_cell_id: &CloneCellId
) -> AppResult<CloneId>
pub fn get_archived_clone_id(
&self,
clone_cell_id: &CloneCellId
) -> AppResult<CloneId>
Get the clone id from either clone or cell id.
sourcepub fn archive_clone_cell(&mut self, clone_id: &CloneId) -> AppResult<()>
pub fn archive_clone_cell(&mut self, clone_id: &CloneId) -> AppResult<()>
Archive a clone cell.
Removes the cell from the list of clones and it is not accessible any longer.
sourcepub fn restore_clone_cell(
&mut self,
clone_id: &CloneId
) -> AppResult<InstalledCell>
pub fn restore_clone_cell(
&mut self,
clone_id: &CloneId
) -> AppResult<InstalledCell>
Transformer Restore an archived clone cell.
The clone cell is added back to the list of clones and can be accessed again.
Returns
The restored clone cell.
sourcepub fn delete_archived_clone_cells_for_role(
&mut self,
role_id: &AppRoleId
) -> AppResult<()>
pub fn delete_archived_clone_cells_for_role(
&mut self,
role_id: &AppRoleId
) -> AppResult<()>
Delete all archived clone cells.
sourcepub fn _agent_key(&self) -> &AgentPubKey
pub fn _agent_key(&self) -> &AgentPubKey
Accessor
Trait Implementations
sourceimpl AsMut<InstalledAppCommon> for RunningApp
impl AsMut<InstalledAppCommon> for RunningApp
sourcefn as_mut(&mut self) -> &mut InstalledAppCommon
fn as_mut(&mut self) -> &mut InstalledAppCommon
sourceimpl AsRef<InstalledAppCommon> for RunningApp
impl AsRef<InstalledAppCommon> for RunningApp
sourcefn as_ref(&self) -> &InstalledAppCommon
fn as_ref(&self) -> &InstalledAppCommon
sourceimpl Borrow<InstalledAppCommon> for RunningApp
impl Borrow<InstalledAppCommon> for RunningApp
sourcefn borrow(&self) -> &InstalledAppCommon
fn borrow(&self) -> &InstalledAppCommon
sourceimpl BorrowMut<InstalledAppCommon> for RunningApp
impl BorrowMut<InstalledAppCommon> for RunningApp
sourcefn borrow_mut(&mut self) -> &mut InstalledAppCommon
fn borrow_mut(&mut self) -> &mut InstalledAppCommon
sourceimpl Clone for RunningApp
impl Clone for RunningApp
sourcefn clone(&self) -> RunningApp
fn clone(&self) -> RunningApp
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for RunningApp
impl Debug for RunningApp
sourceimpl Deref for RunningApp
impl Deref for RunningApp
type Target = InstalledAppCommon
type Target = InstalledAppCommon
sourceimpl DerefMut for RunningApp
impl DerefMut for RunningApp
sourceimpl<'de> Deserialize<'de> for RunningApp
impl<'de> Deserialize<'de> for RunningApp
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl From<InstalledAppCommon> for RunningApp
impl From<InstalledAppCommon> for RunningApp
sourcefn from(original: InstalledAppCommon) -> RunningApp
fn from(original: InstalledAppCommon) -> RunningApp
sourceimpl From<RunningApp> for InstalledApp
impl From<RunningApp> for InstalledApp
sourcefn from(app: RunningApp) -> Self
fn from(app: RunningApp) -> Self
sourceimpl PartialEq<RunningApp> for RunningApp
impl PartialEq<RunningApp> for RunningApp
sourcefn eq(&self, other: &RunningApp) -> bool
fn eq(&self, other: &RunningApp) -> bool
sourceimpl Serialize for RunningApp
impl Serialize for RunningApp
impl Eq for RunningApp
impl StructuralEq for RunningApp
impl StructuralPartialEq for RunningApp
Auto Trait Implementations
impl RefUnwindSafe for RunningApp
impl Send for RunningApp
impl Sync for RunningApp
impl Unpin for RunningApp
impl UnwindSafe for RunningApp
Blanket Implementations
impl<T> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.