pub struct GrpcTimeout {
pub idle: Option<Duration>,
pub per_request: Option<Duration>,
}
Expand description
An object that represents types of timeouts.
Fields§
§idle: Option<Duration>
An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
per_request: Option<Duration>
An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
Trait Implementations§
Source§impl Clone for GrpcTimeout
impl Clone for GrpcTimeout
Source§fn clone(&self) -> GrpcTimeout
fn clone(&self) -> GrpcTimeout
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 GrpcTimeout
impl Debug for GrpcTimeout
Source§impl Default for GrpcTimeout
impl Default for GrpcTimeout
Source§fn default() -> GrpcTimeout
fn default() -> GrpcTimeout
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GrpcTimeout
impl<'de> Deserialize<'de> for GrpcTimeout
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 GrpcTimeout
impl PartialEq for GrpcTimeout
Source§impl Serialize for GrpcTimeout
impl Serialize for GrpcTimeout
impl StructuralPartialEq for GrpcTimeout
Auto Trait Implementations§
impl Freeze for GrpcTimeout
impl RefUnwindSafe for GrpcTimeout
impl Send for GrpcTimeout
impl Sync for GrpcTimeout
impl Unpin for GrpcTimeout
impl UnwindSafe for GrpcTimeout
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