pub struct ReadEvalRequest {
pub origin: RequestOrigin,
pub codec: Symbol,
pub source: ReadEvalSource,
pub authority: SourceAuthority,
pub expected_shape: Arc<dyn Shape>,
}Expand description
A single explicit, host-authorized read-eval admission request.
Fields§
§origin: RequestOriginOpen origin data describing who asked for eval.
codec: SymbolCodec symbol used to decode text or bytes sources.
source: ReadEvalSourceSource to decode and evaluate, or an already-decoded expression.
Trusted host authority governing source admission and evaluation.
expected_shape: Arc<dyn Shape>Shape the evaluated result must satisfy before it is admitted.
Implementations§
Source§impl ReadEvalRequest
impl ReadEvalRequest
Sourcepub fn new(
origin: RequestOrigin,
codec: Symbol,
source: ReadEvalSource,
authority: SourceAuthority,
expected_shape: Arc<dyn Shape>,
) -> ReadEvalRequest
pub fn new( origin: RequestOrigin, codec: Symbol, source: ReadEvalSource, authority: SourceAuthority, expected_shape: Arc<dyn Shape>, ) -> ReadEvalRequest
Builds a request whose source authority is explicit and indivisible.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadEvalRequest
impl !UnwindSafe for ReadEvalRequest
impl Freeze for ReadEvalRequest
impl Send for ReadEvalRequest
impl Sync for ReadEvalRequest
impl Unpin for ReadEvalRequest
impl UnsafeUnpin for ReadEvalRequest
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> 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