Struct SteeringInput
pub struct SteeringInput { /* private fields */ }Expand description
One mid-turn steering message.
Implementations§
Source§impl SteeringInput
impl SteeringInput
Sourcepub fn new(text: impl Into<String>) -> Self
pub fn new(text: impl Into<String>) -> Self
A message whose sender’s authority cannot change during the turn (the gateway chat socket authorizes its connection once). Always admitted, with no narrowing.
Sourcepub fn with_admission(text: impl Into<String>, admit: SteeringAdmit) -> Self
pub fn with_admission(text: impl Into<String>, admit: SteeringAdmit) -> Self
A message whose sender must still be authorized when it is consumed.
Sourcepub fn with_ingress(self, ingress: IngressContext) -> Self
pub fn with_ingress(self, ingress: IngressContext) -> Self
Attach producer-stamped ingress facts independently of live authorization. Absent facts never inherit the enclosing turn.
pub fn ingress(&self) -> Option<&IngressContext>
pub fn text(&self) -> &str
Sourcepub fn admit(&self) -> SteeringAdmission
pub fn admit(&self) -> SteeringAdmission
Evaluate the sender’s authority now.
pub fn into_text(self) -> String
Trait Implementations§
Source§impl Debug for SteeringInput
impl Debug for SteeringInput
Source§impl From<&str> for SteeringInput
impl From<&str> for SteeringInput
Auto Trait Implementations§
impl !RefUnwindSafe for SteeringInput
impl !UnwindSafe for SteeringInput
impl Freeze for SteeringInput
impl Send for SteeringInput
impl Sync for SteeringInput
impl Unpin for SteeringInput
impl UnsafeUnpin for SteeringInput
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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