pub struct CallSpec<'a> {
pub target: &'a CallTarget,
pub producer: &'a str,
pub procedure: &'a str,
pub params: &'a [String],
pub body: Option<Vec<u8>>,
pub attachment: Option<Vec<u8>>,
pub timeout: Duration,
pub slices: Option<&'a SliceSet>,
}Expand description
One procedure call, as a spec rather than nine positional arguments —
the shape crate::BenchSpec already uses next door, for the same
call.
body and attachment are owned because they are consumed: they ride
the GET out and nothing reads them again.
Fields§
§target: &'a CallTarget§producer: &'a str§procedure: &'a strSlash-separated, as the registry spells it (capture/trigger).
params: &'a [String]Selector parameters, joined with ; onto the key (RFC 05 §1).
body: Option<Vec<u8>>The request payload, already through the encode ladder.
attachment: Option<Vec<u8>>Verbatim, never schema-encoded — an attachment is outside the registry’s vocabulary (#117).
timeout: Duration§slices: Option<&'a SliceSet>The loaded registry, for the fan-out guard below. None = none
loaded, and the guard says so rather than judging.
Auto Trait Implementations§
impl<'a> Freeze for CallSpec<'a>
impl<'a> RefUnwindSafe for CallSpec<'a>
impl<'a> Send for CallSpec<'a>
impl<'a> Sync for CallSpec<'a>
impl<'a> Unpin for CallSpec<'a>
impl<'a> UnsafeUnpin for CallSpec<'a>
impl<'a> UnwindSafe for CallSpec<'a>
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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> 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