Struct grpcio::WriteFlags
source · [−]pub struct WriteFlags { /* private fields */ }
Expand description
Flags for write operations.
Implementations
sourceimpl WriteFlags
impl WriteFlags
sourcepub fn buffer_hint(self, need_buffered: bool) -> WriteFlags
pub fn buffer_hint(self, need_buffered: bool) -> WriteFlags
Hint that the write may be buffered and need not go out on the wire immediately.
gRPC is free to buffer the message until the next non-buffered write, or until write stream completion, but it need not buffer completely or at all.
sourcepub fn force_no_compress(self, no_compress: bool) -> WriteFlags
pub fn force_no_compress(self, no_compress: bool) -> WriteFlags
Force compression to be disabled.
sourcepub fn get_buffer_hint(self) -> bool
pub fn get_buffer_hint(self) -> bool
Get whether buffer hint is enabled.
sourcepub fn get_force_no_compress(self) -> bool
pub fn get_force_no_compress(self) -> bool
Get whether compression is disabled.
Trait Implementations
sourceimpl Clone for WriteFlags
impl Clone for WriteFlags
sourcefn clone(&self) -> WriteFlags
fn clone(&self) -> WriteFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for WriteFlags
impl Default for WriteFlags
sourcefn default() -> WriteFlags
fn default() -> WriteFlags
Returns the “default value” for a type. Read more
impl Copy for WriteFlags
Auto Trait Implementations
impl RefUnwindSafe for WriteFlags
impl Send for WriteFlags
impl Sync for WriteFlags
impl Unpin for WriteFlags
impl UnwindSafe for WriteFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more