pub struct UnitGrpcRequest { /* private fields */ }Expand description
Represents a gRPC request in unit tests.
This struct encapsulates the service name, method name, initial metadata, and the serialized protobuf message for gRPC calls made by policies.
Implementations§
Source§impl UnitGrpcRequest
impl UnitGrpcRequest
Sourcepub fn initial_metadata(&self) -> &Vec<(String, Bytes)>
pub fn initial_metadata(&self) -> &Vec<(String, Bytes)>
Returns a reference to the initial metadata (headers) of the gRPC request.
Trait Implementations§
Source§impl Clone for UnitGrpcRequest
impl Clone for UnitGrpcRequest
Source§fn clone(&self) -> UnitGrpcRequest
fn clone(&self) -> UnitGrpcRequest
Returns a duplicate 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 Default for UnitGrpcRequest
impl Default for UnitGrpcRequest
Source§fn default() -> UnitGrpcRequest
fn default() -> UnitGrpcRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnitGrpcRequest
impl<'de> Deserialize<'de> for UnitGrpcRequest
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
Auto Trait Implementations§
impl Freeze for UnitGrpcRequest
impl RefUnwindSafe for UnitGrpcRequest
impl Send for UnitGrpcRequest
impl Sync for UnitGrpcRequest
impl Unpin for UnitGrpcRequest
impl UnsafeUnpin for UnitGrpcRequest
impl UnwindSafe for UnitGrpcRequest
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