Struct grpcio::CallOption
[−]
[src]
pub struct CallOption { /* fields omitted */ }
Methods
impl CallOption
[src]
pub fn idempotent(self, is_idempotent: bool) -> CallOption
[src]
Signal that the call is idempotent
pub fn wait_for_ready(self, wait_for_ready: bool) -> CallOption
[src]
Signal that the call should not return UNAVAILABLE before it has started
pub fn cacheable(self, cacheable: bool) -> CallOption
[src]
Signal that the call is cacheable. GRPC is free to use GET verb
pub fn write_flags(self, write_flags: WriteFlags) -> CallOption
[src]
pub fn timeout(self, timeout: Duration) -> CallOption
[src]
Set a timeout.
pub fn get_timeout(&self) -> Option<Duration>
[src]
Get the timeout.
pub fn headers(self, meta: Metadata) -> CallOption
[src]
Set the headers to be sent with the call.
pub fn get_headers(&self) -> Option<&Metadata>
[src]
Get the headers.
Trait Implementations
impl Clone for CallOption
[src]
fn clone(&self) -> CallOption
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for CallOption
[src]
fn default() -> CallOption
[src]
Returns the "default value" for a type. Read more