pub struct GrpcAssault { /* private fields */ }
Implementations§
Source§impl GrpcAssault
impl GrpcAssault
Trait Implementations§
Source§impl Assault<GrpcMethodRequest<Value, JsonSerializer>, Response<Value>> for GrpcAssault
impl Assault<GrpcMethodRequest<Value, JsonSerializer>, Response<Value>> for GrpcAssault
type Request = GrpcRequest
type Response = GrpcResponse
type Recorder = GrpcIoRecorder
fn command(&self) -> &Relentless
fn recorder(&self) -> Self::Recorder
async fn execute<S>(&self, service: S) -> Result<ExitCode, RelentlessError>where
Self::Request: RequestFactory<Req, S>,
<Self::Request as RequestFactory<Req, S>>::Error: Error + Send + Sync + 'static,
<Self::Response as Evaluate<Res>>::Message: Display,
S: Service<Req, Response = Res> + Clone + Send + 'static,
<S as Service<Req>>::Error: Error + Send + Sync + 'static,
<S as Service<Req>>::Future: Send + 'static,
§fn configs(
&self,
) -> (Vec<Config<Self::Request, Self::Response>>, Vec<RelentlessError>)
fn configs( &self, ) -> (Vec<Config<Self::Request, Self::Response>>, Vec<RelentlessError>)
TODO document
fn all_destinations( &self, configs: &[Config<Self::Request, Self::Response>], ) -> Vec<Uri>
§fn build_service<S>(&self, service: S) -> RecordService<S, Self::Recorder>
fn build_service<S>(&self, service: S) -> RecordService<S, Self::Recorder>
TODO document
async fn assault_with<S>( &self, configs: Vec<Config<Self::Request, Self::Response>>, service: S, ) -> Result<Report<<Self::Response as Evaluate<Res>>::Message, Self::Request, Self::Response>, RelentlessError>
fn report_with<W>( &self, report: &Report<<Self::Response as Evaluate<Res>>::Message, Self::Request, Self::Response>, write: W, ) -> Result<bool, Error>
fn pass( &self, report: &Report<<Self::Response as Evaluate<Res>>::Message, Self::Request, Self::Response>, ) -> bool
fn allow( &self, report: &Report<<Self::Response as Evaluate<Res>>::Message, Self::Request, Self::Response>, ) -> bool
fn exit_code( &self, report: &Report<<Self::Response as Evaluate<Res>>::Message, Self::Request, Self::Response>, ) -> ExitCode
Source§impl Clone for GrpcAssault
impl Clone for GrpcAssault
Source§fn clone(&self) -> GrpcAssault
fn clone(&self) -> GrpcAssault
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GrpcAssault
impl Debug for GrpcAssault
Source§impl Default for GrpcAssault
impl Default for GrpcAssault
Source§fn default() -> GrpcAssault
fn default() -> GrpcAssault
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GrpcAssault
impl<'de> Deserialize<'de> for GrpcAssault
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GrpcAssault
impl PartialEq for GrpcAssault
Source§impl Serialize for GrpcAssault
impl Serialize for GrpcAssault
impl StructuralPartialEq for GrpcAssault
Auto Trait Implementations§
impl Freeze for GrpcAssault
impl RefUnwindSafe for GrpcAssault
impl Send for GrpcAssault
impl Sync for GrpcAssault
impl Unpin for GrpcAssault
impl UnwindSafe for GrpcAssault
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request