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