pub enum CapabilityOwner {
Gate,
Consumer(ConsumerId),
}Expand description
Provider ownership is an admission boundary. Consumer(owner) can serve
only requests whose exact consumer_id equals owner; Gate may be
shared, but only through an otherwise exact policy grant.
Variants§
Gate
Consumer(ConsumerId)
Trait Implementations§
Source§impl Clone for CapabilityOwner
impl Clone for CapabilityOwner
Source§fn clone(&self) -> CapabilityOwner
fn clone(&self) -> CapabilityOwner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CapabilityOwner
impl Debug for CapabilityOwner
Source§impl<'de> Deserialize<'de> for CapabilityOwner
impl<'de> Deserialize<'de> for CapabilityOwner
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilityOwner, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilityOwner, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CapabilityOwner
Source§impl PartialEq for CapabilityOwner
impl PartialEq for CapabilityOwner
Source§impl Serialize for CapabilityOwner
impl Serialize for CapabilityOwner
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CapabilityOwner
Auto Trait Implementations§
impl Freeze for CapabilityOwner
impl RefUnwindSafe for CapabilityOwner
impl Send for CapabilityOwner
impl Sync for CapabilityOwner
impl Unpin for CapabilityOwner
impl UnsafeUnpin for CapabilityOwner
impl UnwindSafe for CapabilityOwner
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