pub struct SessionRefs(/* private fields */);Expand description
Keyed session refs, present only while the enrolled Cloud accepts them.
Implementations§
Source§impl SessionRefs
impl SessionRefs
Sourcepub fn for_store(store: &CloudStore) -> Option<Self>
pub fn for_store(store: &CloudStore) -> Option<Self>
None when the enrolled Cloud did not announce session_ref or the
local key cannot be read: nothing then carries a session.
Sourcepub fn event_ref(&self, id: &str) -> Option<String>
pub fn event_ref(&self, id: &str) -> Option<String>
The envelope session_ref of the engine session id, or None when
id is no session this engine generated.
Sourcepub fn episode_ref(&self, id: &str) -> String
pub fn episode_ref(&self, id: &str) -> String
The ses_ ref an uploaded episode body names session id by: the
contract shape of crate::knowledge::draft::session_ref (ses_ and
24 hex characters), but keyed under the local receipts key with its
own label, so the server can neither test a guessed id against it nor
tie it to the envelope ref of the same event.
Auto Trait Implementations§
impl Forget for SessionRefs
impl Freeze for SessionRefs
impl Move for SessionRefs
impl RefUnwindSafe for SessionRefs
impl Send for SessionRefs
impl Sync for SessionRefs
impl Unpin for SessionRefs
impl UnsafeUnpin for SessionRefs
impl UnwindSafe for SessionRefs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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