pub struct OpenSession { /* private fields */ }Expand description
What an open seat declared, carried into the agent path.
Implementations§
Trait Implementations§
Source§impl Clone for OpenSession
impl Clone for OpenSession
Source§impl Debug for OpenSession
impl Debug for OpenSession
impl Eq for OpenSession
Source§impl LysSession for OpenSession
impl LysSession for OpenSession
Source§fn holder_kind(&self) -> Option<&str>
fn holder_kind(&self) -> Option<&str>
The directory kind of that holder as the signed pass states it, for
the membership question (ACCESS-006 R1);
None when unknown, which a
membership-protected channel refuses by name.Source§fn decide(
&self,
_subject: &SubjectBinding,
_action: HotAction,
_now: u64,
) -> Result<GrantReceipt, AccessDecisionError>
fn decide( &self, _subject: &SubjectBinding, _action: HotAction, _now: u64, ) -> Result<GrantReceipt, AccessDecisionError>
Decides one hot action on one bound subject at
now, offline. Read moreSource§fn decide_link(
&self,
subject: &SubjectBinding,
action: LinkAction,
_now: u64,
) -> Result<GrantReceipt, AccessDecisionError>
fn decide_link( &self, subject: &SubjectBinding, action: LinkAction, _now: u64, ) -> Result<GrantReceipt, AccessDecisionError>
Decides one link grant (
link_export or link_import) on one bound
link at now, offline from the admitted pass (ACCESS-002 R1). Read moreSource§fn open_link(
&self,
link: &AccessResource,
end: LinkAction,
_now: u64,
) -> Result<DeliberateDecision, AccessDecisionError>
fn open_link( &self, link: &AccessResource, end: LinkAction, _now: u64, ) -> Result<DeliberateDecision, AccessDecisionError>
Asks Lys, live, whether this holder may open
end of link: never
decided from the pass alone, and DeliberateUnavailable when Lys
cannot be asked (ACCESS-002 R1). Read moreSource§fn decide_live(
&self,
resource: &AccessResource,
action: AccessAction,
_now: u64,
) -> Result<DeliberateDecision, AccessDecisionError>
fn decide_live( &self, resource: &AccessResource, action: AccessAction, _now: u64, ) -> Result<DeliberateDecision, AccessDecisionError>
Asks Lys live for
action on resource with this connection’s pass
(ACCESS-003 R1): the deliberate decision a service of class
deliberate is served on. A held answer carries the grant and draft;
without a live seam the answer is DeliberateUnavailable, never a
hot fallback. Read moreSource§fn hold_permission(
&self,
_request: PermissionRequest<'_>,
) -> Result<Value, Error>
fn hold_permission( &self, _request: PermissionRequest<'_>, ) -> Result<Value, Error>
Holds a generic host permission through this session’s consumer. Read more
Source§impl PartialEq for OpenSession
impl PartialEq for OpenSession
impl StructuralPartialEq for OpenSession
Auto Trait Implementations§
impl Freeze for OpenSession
impl RefUnwindSafe for OpenSession
impl Send for OpenSession
impl Sync for OpenSession
impl Unpin for OpenSession
impl UnsafeUnpin for OpenSession
impl UnwindSafe for OpenSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.