pub enum PersistentCard {
Concrete(PermissionCard),
Template(PolymorphicPermissionCard),
}Expand description
An owned persistent card, labelled with the kind returned by the host.
Variants§
Concrete(PermissionCard)
Template(PolymorphicPermissionCard)
Implementations§
Source§impl PersistentCard
impl PersistentCard
Sourcepub fn expires_at(&self) -> Option<Timestamp>
pub fn expires_at(&self) -> Option<Timestamp>
The expiry time, or None for an unbounded lifespan.
Sourcepub fn inspect(&self) -> Result<CardView, PermissionError>
pub fn inspect(&self) -> Result<CardView, PermissionError>
Returns the grant lists. Requires card:inspect.
Sourcepub fn derive(
&self,
bounds: &Bounds,
lifespan: Option<&Lifespan>,
) -> Result<Self, PermissionError>
pub fn derive( &self, bounds: &Bounds, lifespan: Option<&Lifespan>, ) -> Result<Self, PermissionError>
Derives a child whose kind is selected by the host.
Sourcepub fn revoke(self) -> Result<u32, PermissionError>
pub fn revoke(self) -> Result<u32, PermissionError>
Revokes this card and its descendants, consuming the handle.
Trait Implementations§
Source§impl Debug for PersistentCard
impl Debug for PersistentCard
Source§impl<'a> From<&'a PersistentCard> for ScopeParent<'a>
impl<'a> From<&'a PersistentCard> for ScopeParent<'a>
Source§fn from(card: &'a PersistentCard) -> Self
fn from(card: &'a PersistentCard) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PersistentCard
impl RefUnwindSafe for PersistentCard
impl Send for PersistentCard
impl Sync for PersistentCard
impl Unpin for PersistentCard
impl UnsafeUnpin for PersistentCard
impl UnwindSafe for PersistentCard
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