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
sourceimpl 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
sourceimpl Clone for HostFnAccess
impl Clone for HostFnAccess
sourcefn clone(&self) -> HostFnAccess
fn clone(&self) -> HostFnAccess
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 moresourceimpl Debug for HostFnAccess
impl Debug for HostFnAccess
sourceimpl From<&EntryDefsHostAccess> for HostFnAccess
impl From<&EntryDefsHostAccess> for HostFnAccess
sourcefn from(_: &EntryDefsHostAccess) -> Self
fn from(_: &EntryDefsHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<&GenesisSelfCheckHostAccess> for HostFnAccess
impl From<&GenesisSelfCheckHostAccess> for HostFnAccess
sourcefn from(_: &GenesisSelfCheckHostAccess) -> Self
fn from(_: &GenesisSelfCheckHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<&HostContext> for HostFnAccess
impl From<&HostContext> for HostFnAccess
sourcefn from(host_access: &HostContext) -> Self
fn from(host_access: &HostContext) -> Self
Converts to this type from the input type.
sourceimpl From<&InitHostAccess> for HostFnAccess
impl From<&InitHostAccess> for HostFnAccess
sourcefn from(_: &InitHostAccess) -> Self
fn from(_: &InitHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<&MigrateAgentHostAccess> for HostFnAccess
impl From<&MigrateAgentHostAccess> for HostFnAccess
sourcefn from(_: &MigrateAgentHostAccess) -> Self
fn from(_: &MigrateAgentHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<&PostCommitHostAccess> for HostFnAccess
impl From<&PostCommitHostAccess> for HostFnAccess
sourcefn from(_: &PostCommitHostAccess) -> Self
fn from(_: &PostCommitHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<&ValidateHostAccess> for HostFnAccess
impl From<&ValidateHostAccess> for HostFnAccess
sourcefn from(_: &ValidateHostAccess) -> Self
fn from(_: &ValidateHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<&ValidationPackageHostAccess> for HostFnAccess
impl From<&ValidationPackageHostAccess> for HostFnAccess
sourcefn from(_: &ValidationPackageHostAccess) -> Self
fn from(_: &ValidationPackageHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<&ZomeCallHostAccess> for HostFnAccess
impl From<&ZomeCallHostAccess> for HostFnAccess
sourcefn from(_: &ZomeCallHostAccess) -> Self
fn from(_: &ZomeCallHostAccess) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<HostFnAccess> for HostFnAccess
impl PartialEq<HostFnAccess> for HostFnAccess
sourcefn eq(&self, other: &HostFnAccess) -> bool
fn eq(&self, other: &HostFnAccess) -> bool
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> 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
TODO: once 1.33.0 is the minimum supported compiler version, remove
Any::type_id_compat and use StdAny::type_id instead.
https://github.com/rust-lang/rust/issues/27745 Read more
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 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
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
impl<T> FutureExt for T
impl<T> FutureExt for T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
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 morefn 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: 'static + Any + Send + Sync,
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
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
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
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>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;