Struct holochain::prelude::HostFnAccess
source · pub struct HostFnAccess {
pub agent_info: Permission,
pub read_workspace: Permission,
pub read_workspace_deterministic: Permission,
pub write_workspace: Permission,
pub write_network: Permission,
pub bindings: Permission,
pub bindings_deterministic: Permission,
pub non_determinism: Permission,
pub keystore: Permission,
pub keystore_deterministic: Permission,
}
Expand description
Access a call has to host functions
Fields§
§agent_info: Permission
Can access agent information
read_workspace: Permission
Can access the workspace
read_workspace_deterministic: Permission
Can access the workspace deterministically.
write_workspace: Permission
Can write and workspace
write_network: Permission
Can write to the network
bindings: Permission
Can access bindings.
bindings_deterministic: Permission
Can access the deterministic bindings.
non_determinism: Permission
All other non-deterministic functions
keystore: Permission
Access to functions that use the keystore in the conductor
keystore_deterministic: Permission
Access to deterministic keystore functions.
Implementations§
source§impl HostFnAccess
impl HostFnAccess
sourcepub fn new(
agent_info: Permission,
read_workspace: Permission,
read_workspace_deterministic: Permission,
write_workspace: Permission,
write_network: Permission,
bindings: Permission,
bindings_deterministic: Permission,
non_determinism: Permission,
keystore: Permission,
keystore_deterministic: Permission
) -> HostFnAccess
pub fn new( agent_info: Permission, read_workspace: Permission, read_workspace_deterministic: Permission, write_workspace: Permission, write_network: Permission, bindings: Permission, bindings_deterministic: Permission, non_determinism: Permission, keystore: Permission, keystore_deterministic: Permission ) -> HostFnAccess
Constructor.
sourcepub fn all() -> HostFnAccess
pub fn all() -> HostFnAccess
Allow all access
sourcepub fn none() -> HostFnAccess
pub fn none() -> HostFnAccess
Deny all access
Trait Implementations§
source§impl Clone for HostFnAccess
impl Clone for HostFnAccess
source§fn clone(&self) -> HostFnAccess
fn clone(&self) -> HostFnAccess
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HostFnAccess
impl Debug for HostFnAccess
source§impl From<&EntryDefsHostAccess> for HostFnAccess
impl From<&EntryDefsHostAccess> for HostFnAccess
source§fn from(_: &EntryDefsHostAccess) -> Self
fn from(_: &EntryDefsHostAccess) -> Self
Converts to this type from the input type.
source§impl From<&GenesisSelfCheckHostAccessV1> for HostFnAccess
impl From<&GenesisSelfCheckHostAccessV1> for HostFnAccess
source§fn from(_: &GenesisSelfCheckHostAccessV1) -> Self
fn from(_: &GenesisSelfCheckHostAccessV1) -> Self
Converts to this type from the input type.
source§impl From<&GenesisSelfCheckHostAccessV2> for HostFnAccess
impl From<&GenesisSelfCheckHostAccessV2> for HostFnAccess
source§fn from(_: &GenesisSelfCheckHostAccessV2) -> Self
fn from(_: &GenesisSelfCheckHostAccessV2) -> Self
Converts to this type from the input type.
source§impl From<&HostContext> for HostFnAccess
impl From<&HostContext> for HostFnAccess
source§fn from(host_access: &HostContext) -> Self
fn from(host_access: &HostContext) -> Self
Converts to this type from the input type.
source§impl From<&InitHostAccess> for HostFnAccess
impl From<&InitHostAccess> for HostFnAccess
source§fn from(_: &InitHostAccess) -> Self
fn from(_: &InitHostAccess) -> Self
Converts to this type from the input type.
source§impl From<&MigrateAgentHostAccess> for HostFnAccess
impl From<&MigrateAgentHostAccess> for HostFnAccess
source§fn from(_: &MigrateAgentHostAccess) -> Self
fn from(_: &MigrateAgentHostAccess) -> Self
Converts to this type from the input type.
source§impl From<&PostCommitHostAccess> for HostFnAccess
impl From<&PostCommitHostAccess> for HostFnAccess
source§fn from(_: &PostCommitHostAccess) -> Self
fn from(_: &PostCommitHostAccess) -> Self
Converts to this type from the input type.
source§impl From<&ValidateHostAccess> for HostFnAccess
impl From<&ValidateHostAccess> for HostFnAccess
source§fn from(_: &ValidateHostAccess) -> Self
fn from(_: &ValidateHostAccess) -> Self
Converts to this type from the input type.
source§impl From<&ZomeCallHostAccess> for HostFnAccess
impl From<&ZomeCallHostAccess> for HostFnAccess
source§fn from(_: &ZomeCallHostAccess) -> Self
fn from(_: &ZomeCallHostAccess) -> Self
Converts to this type from the input type.
source§impl PartialEq<HostFnAccess> for HostFnAccess
impl PartialEq<HostFnAccess> for HostFnAccess
source§fn eq(&self, other: &HostFnAccess) -> bool
fn eq(&self, other: &HostFnAccess) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HostFnAccess
impl StructuralPartialEq for HostFnAccess
Auto Trait Implementations§
impl RefUnwindSafe for HostFnAccess
impl Send for HostFnAccess
impl Sync for HostFnAccess
impl Unpin for HostFnAccess
impl UnwindSafe for HostFnAccess
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.
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
§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>
Deserializes using the given deserializer
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> 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> ⓘ
§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>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref