Struct grpcio::CallOption
[−]
[src]
pub struct CallOption { /* fields omitted */ }
Methods
impl CallOption
[src]
fn idempotent(self, is_idempotent: bool) -> CallOption
[src]
Signal that the call is idempotent
fn wait_for_ready(self, wait_for_ready: bool) -> CallOption
[src]
Signal that the call should not return UNAVAILABLE before it has started
fn cacheable(self, cacheable: bool) -> CallOption
[src]
Signal that the call is cacheable. GRPC is free to use GET verb
fn write_flags(self, write_flags: WriteFlags) -> CallOption
[src]
fn timeout(self, timeout: Duration) -> CallOption
[src]
Set a timeout.
fn get_timeout(&self) -> Option<Duration>
[src]
Get the timeout.
Trait Implementations
impl Default for CallOption
[src]
fn default() -> CallOption
[src]
Returns the "default value" for a type. Read more