#[non_exhaustive]pub enum WritePolicy {
Open,
Owner,
}Expand description
Write authorization policy (SPEC-TRANSPORT-CONNECT §7.5). Hooks compose with this policy under SPEC-SERVER §6.2.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Open
Authentication and the authorizer hook suffice; Single addressing only.
Owner
Require namespace ownership or an authority source; grants land in M2.
Trait Implementations§
Source§impl Clone for WritePolicy
impl Clone for WritePolicy
impl Copy for WritePolicy
Source§impl Debug for WritePolicy
impl Debug for WritePolicy
impl Eq for WritePolicy
Source§impl PartialEq for WritePolicy
impl PartialEq for WritePolicy
impl StructuralPartialEq for WritePolicy
Auto Trait Implementations§
impl Freeze for WritePolicy
impl RefUnwindSafe for WritePolicy
impl Send for WritePolicy
impl Sync for WritePolicy
impl Unpin for WritePolicy
impl UnsafeUnpin for WritePolicy
impl UnwindSafe for WritePolicy
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