Struct holochain_types::app::InstalledAppCommon
source · [−]pub struct InstalledAppCommon { /* private fields */ }
Expand description
The common data between apps of any status
Implementations
sourceimpl InstalledAppCommon
impl InstalledAppCommon
sourcepub fn new<S: ToString, I: IntoIterator<Item = (AppRoleId, AppRoleAssignment)>>(
installed_app_id: S,
_agent_key: AgentPubKey,
role_assignments: I
) -> Self
pub fn new<S: ToString, I: IntoIterator<Item = (AppRoleId, AppRoleAssignment)>>(
installed_app_id: S,
_agent_key: AgentPubKey,
role_assignments: I
) -> Self
Constructor
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 into_provisioned_cells(self) -> impl Iterator<Item = (AppRoleId, CellId)>
pub fn into_provisioned_cells(self) -> impl Iterator<Item = (AppRoleId, CellId)>
Accessor
sourcepub fn cloned_cells(&self) -> impl Iterator<Item = &CellId>
pub fn cloned_cells(&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<()>
pub fn add_clone(
&mut self,
role_id: &AppRoleId,
cell_id: CellId
) -> AppResult<()>
Add a cloned cell
sourcepub fn remove_clone(
&mut self,
role_id: &AppRoleId,
cell_id: &CellId
) -> AppResult<bool>
pub fn remove_clone(
&mut self,
role_id: &AppRoleId,
cell_id: &CellId
) -> AppResult<bool>
Remove a cloned cell
sourcepub fn _agent_key(&self) -> &AgentPubKey
pub fn _agent_key(&self) -> &AgentPubKey
Accessor
sourcepub fn new_legacy<S: ToString, I: IntoIterator<Item = InstalledCell>>(
installed_app_id: S,
installed_cells: I
) -> AppResult<Self>
pub fn new_legacy<S: ToString, I: IntoIterator<Item = InstalledCell>>(
installed_app_id: S,
installed_cells: I
) -> AppResult<Self>
Constructor for apps not using a manifest. Disables cloning, and implies immediate provisioning.
Trait Implementations
sourceimpl AsMut<InstalledAppCommon> for InstalledApp
impl AsMut<InstalledAppCommon> for InstalledApp
sourcefn as_mut(&mut self) -> &mut InstalledAppCommon
fn as_mut(&mut self) -> &mut InstalledAppCommon
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsMut<InstalledAppCommon> for RunningApp
impl AsMut<InstalledAppCommon> for RunningApp
sourcefn as_mut(&mut self) -> &mut InstalledAppCommon
fn as_mut(&mut self) -> &mut InstalledAppCommon
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsMut<InstalledAppCommon> for StoppedApp
impl AsMut<InstalledAppCommon> for StoppedApp
sourcefn as_mut(&mut self) -> &mut InstalledAppCommon
fn as_mut(&mut self) -> &mut InstalledAppCommon
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<InstalledAppCommon> for InstalledApp
impl AsRef<InstalledAppCommon> for InstalledApp
sourcefn as_ref(&self) -> &InstalledAppCommon
fn as_ref(&self) -> &InstalledAppCommon
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<InstalledAppCommon> for RunningApp
impl AsRef<InstalledAppCommon> for RunningApp
sourcefn as_ref(&self) -> &InstalledAppCommon
fn as_ref(&self) -> &InstalledAppCommon
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<InstalledAppCommon> for StoppedApp
impl AsRef<InstalledAppCommon> for StoppedApp
sourcefn as_ref(&self) -> &InstalledAppCommon
fn as_ref(&self) -> &InstalledAppCommon
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<InstalledAppCommon> for InstalledApp
impl Borrow<InstalledAppCommon> for InstalledApp
sourcefn borrow(&self) -> &InstalledAppCommon
fn borrow(&self) -> &InstalledAppCommon
Immutably borrows from an owned value. Read more
sourceimpl Borrow<InstalledAppCommon> for RunningApp
impl Borrow<InstalledAppCommon> for RunningApp
sourcefn borrow(&self) -> &InstalledAppCommon
fn borrow(&self) -> &InstalledAppCommon
Immutably borrows from an owned value. Read more
sourceimpl Borrow<InstalledAppCommon> for StoppedApp
impl Borrow<InstalledAppCommon> for StoppedApp
sourcefn borrow(&self) -> &InstalledAppCommon
fn borrow(&self) -> &InstalledAppCommon
Immutably borrows from an owned value. Read more
sourceimpl BorrowMut<InstalledAppCommon> for InstalledApp
impl BorrowMut<InstalledAppCommon> for InstalledApp
sourcefn borrow_mut(&mut self) -> &mut InstalledAppCommon
fn borrow_mut(&mut self) -> &mut InstalledAppCommon
Mutably borrows from an owned value. Read more
sourceimpl BorrowMut<InstalledAppCommon> for RunningApp
impl BorrowMut<InstalledAppCommon> for RunningApp
sourcefn borrow_mut(&mut self) -> &mut InstalledAppCommon
fn borrow_mut(&mut self) -> &mut InstalledAppCommon
Mutably borrows from an owned value. Read more
sourceimpl BorrowMut<InstalledAppCommon> for StoppedApp
impl BorrowMut<InstalledAppCommon> for StoppedApp
sourcefn borrow_mut(&mut self) -> &mut InstalledAppCommon
fn borrow_mut(&mut self) -> &mut InstalledAppCommon
Mutably borrows from an owned value. Read more
sourceimpl Clone for InstalledAppCommon
impl Clone for InstalledAppCommon
sourcefn clone(&self) -> InstalledAppCommon
fn clone(&self) -> InstalledAppCommon
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InstalledAppCommon
impl Debug for InstalledAppCommon
sourceimpl<'de> Deserialize<'de> for InstalledAppCommon
impl<'de> Deserialize<'de> for InstalledAppCommon
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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<InstalledAppCommon> for RunningApp
impl From<InstalledAppCommon> for RunningApp
sourcefn from(original: InstalledAppCommon) -> RunningApp
fn from(original: InstalledAppCommon) -> RunningApp
Converts to this type from the input type.
sourceimpl From<StoppedApp> for InstalledAppCommon
impl From<StoppedApp> for InstalledAppCommon
sourcefn from(d: StoppedApp) -> Self
fn from(d: StoppedApp) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<InstalledAppCommon> for InstalledAppCommon
impl PartialEq<InstalledAppCommon> for InstalledAppCommon
sourcefn eq(&self, other: &InstalledAppCommon) -> bool
fn eq(&self, other: &InstalledAppCommon) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InstalledAppCommon) -> bool
fn ne(&self, other: &InstalledAppCommon) -> bool
This method tests for !=
.
sourceimpl Serialize for InstalledAppCommon
impl Serialize for InstalledAppCommon
impl Eq for InstalledAppCommon
impl StructuralEq for InstalledAppCommon
impl StructuralPartialEq for InstalledAppCommon
Auto Trait Implementations
impl RefUnwindSafe for InstalledAppCommon
impl Send for InstalledAppCommon
impl Sync for InstalledAppCommon
impl Unpin for InstalledAppCommon
impl UnwindSafe for InstalledAppCommon
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
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>
Deserializes using the given deserializer
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to 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>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more