pub struct CurrentConsentSink { /* private fields */ }Expand description
Slot holding the sink of the call the actor is currently executing.
Written by the actor, which processes requests strictly one at a time, so the slot always names the in-flight call. Read by the host’s consent prompter, which runs inside that execution.
Implementations§
Source§impl CurrentConsentSink
impl CurrentConsentSink
pub fn new() -> Self
Sourcepub fn set(&self, sink: Option<ConsentSink>)
pub fn set(&self, sink: Option<ConsentSink>)
Install the sink for the call about to execute (actor only).
pub fn get(&self) -> Option<ConsentSink>
Trait Implementations§
Source§impl Default for CurrentConsentSink
impl Default for CurrentConsentSink
Source§fn default() -> CurrentConsentSink
fn default() -> CurrentConsentSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CurrentConsentSink
impl RefUnwindSafe for CurrentConsentSink
impl Send for CurrentConsentSink
impl Sync for CurrentConsentSink
impl Unpin for CurrentConsentSink
impl UnsafeUnpin for CurrentConsentSink
impl UnwindSafe for CurrentConsentSink
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 moreSource§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.