pub struct MeshCheckoutPolicy { /* private fields */ }Expand description
The checkout-aware redistribution policy.
Implementations§
Source§impl MeshCheckoutPolicy
impl MeshCheckoutPolicy
Sourcepub fn new(store: Arc<CheckoutGrantStore>) -> Self
pub fn new(store: Arc<CheckoutGrantStore>) -> Self
A policy reading store (which holds the live local mesh id).
Sourcepub fn open(
dir: &Path,
anchors: TrustAnchors,
revocations: Arc<RevocationList>,
local: LocalMeshId,
) -> Arc<Self> ⓘ
pub fn open( dir: &Path, anchors: TrustAnchors, revocations: Arc<RevocationList>, local: LocalMeshId, ) -> Arc<Self> ⓘ
The policy the daemon installs unconditionally: a store under
dir/licence (poisoned, not fatal, if its file is bad), the
revocation list attached, and the local mesh id taken from local
(unset until the mesh nonce is configured, which makes the policy
behave exactly like ManifestPolicy).
Sourcepub fn store(&self) -> &Arc<CheckoutGrantStore> ⓘ
pub fn store(&self) -> &Arc<CheckoutGrantStore> ⓘ
The store the policy reads.
Trait Implementations§
Source§impl Debug for MeshCheckoutPolicy
impl Debug for MeshCheckoutPolicy
Auto Trait Implementations§
impl !RefUnwindSafe for MeshCheckoutPolicy
impl !UnwindSafe for MeshCheckoutPolicy
impl Freeze for MeshCheckoutPolicy
impl Send for MeshCheckoutPolicy
impl Sync for MeshCheckoutPolicy
impl Unpin for MeshCheckoutPolicy
impl UnsafeUnpin for MeshCheckoutPolicy
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more