pub struct MemoryAuthority { /* private fields */ }Expand description
MemoryAuthority
Host-owned permission for one named owner to request keys in a namespace.
The prefix ends in a dot, so app. never grants application.. This policy
metadata grants neither caller authentication nor a sandbox for linked code.
Implementations§
Source§impl MemoryAuthority
impl MemoryAuthority
Sourcepub fn new(
authority: impl Into<String>,
key_prefix: impl Into<String>,
) -> Result<Self, MemoryAllocationPoolError>
pub fn new( authority: impl Into<String>, key_prefix: impl Into<String>, ) -> Result<Self, MemoryAllocationPoolError>
Validate a host grant. Multiple disjoint prefixes may share an owner.
The admitted linked-code owner label.
Sourcepub fn key_prefix(&self) -> &str
pub fn key_prefix(&self) -> &str
Permanent key namespace admitted by the host.
Trait Implementations§
Source§impl Clone for MemoryAuthority
impl Clone for MemoryAuthority
Source§impl Debug for MemoryAuthority
impl Debug for MemoryAuthority
Source§impl<'de> Deserialize<'de> for MemoryAuthority
impl<'de> Deserialize<'de> for MemoryAuthority
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryAuthority
Source§impl PartialEq for MemoryAuthority
impl PartialEq for MemoryAuthority
Source§impl Serialize for MemoryAuthority
impl Serialize for MemoryAuthority
impl StructuralPartialEq for MemoryAuthority
Auto Trait Implementations§
impl Freeze for MemoryAuthority
impl RefUnwindSafe for MemoryAuthority
impl Send for MemoryAuthority
impl Sync for MemoryAuthority
impl Unpin for MemoryAuthority
impl UnsafeUnpin for MemoryAuthority
impl UnwindSafe for MemoryAuthority
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