#[non_exhaustive]pub enum CallTimeout {
ClientDefault,
After(Duration),
Disabled,
}Expand description
Application-level response deadline policy for an RPC call.
This policy does not change transport send/read timeouts or terminal connection handling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ClientDefault
Use the default response timeout configured on the RpcClient.
After(Duration)
Apply the supplied application-level response timeout after the request send commits.
Disabled
Wait without an application-level response deadline.
Explicit client close, terminal connection failure, and dropping the call future still cancel the local wait. They do not cancel work already running on the server.
Trait Implementations§
Source§impl Clone for CallTimeout
impl Clone for CallTimeout
impl Copy for CallTimeout
Source§impl Debug for CallTimeout
impl Debug for CallTimeout
impl Eq for CallTimeout
Source§impl PartialEq for CallTimeout
impl PartialEq for CallTimeout
impl StructuralPartialEq for CallTimeout
Auto Trait Implementations§
impl Freeze for CallTimeout
impl RefUnwindSafe for CallTimeout
impl Send for CallTimeout
impl Sync for CallTimeout
impl Unpin for CallTimeout
impl UnsafeUnpin for CallTimeout
impl UnwindSafe for CallTimeout
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