pub struct WriteOptions { /* private fields */ }Expand description
Type to be used with write_with_options. Use WriteOptionsBuilder to construct this.
Implementations§
Source§impl WriteOptions
impl WriteOptions
pub fn source_timestamp(&self) -> Option<Timestamp>
pub fn to_single_reader(&self) -> Option<GUID>
Sourcepub fn best_effort_may_block(&self) -> bool
pub fn best_effort_may_block(&self) -> bool
Whether a best-effort write call is allowed to block under send-socket
congestion (see WriteOptionsBuilder::best_effort_may_block).
Only meaningful for best-effort DataWriters; reliable writers always apply
back-pressure regardless of this flag. Defaults to false, so by default
a best-effort write never blocks and drops samples under congestion,
as required by DDS v1.4 section 2.2.2.4.2.11.
Trait Implementations§
Source§impl Clone for WriteOptions
impl Clone for WriteOptions
Source§fn clone(&self) -> WriteOptions
fn clone(&self) -> WriteOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WriteOptions
impl Debug for WriteOptions
Source§impl Default for WriteOptions
impl Default for WriteOptions
Source§fn default() -> WriteOptions
fn default() -> WriteOptions
Returns the “default value” for a type. Read more
impl Eq for WriteOptions
Source§impl Ord for WriteOptions
impl Ord for WriteOptions
Source§fn cmp(&self, other: &WriteOptions) -> Ordering
fn cmp(&self, other: &WriteOptions) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WriteOptions
impl PartialEq for WriteOptions
Source§fn eq(&self, other: &WriteOptions) -> bool
fn eq(&self, other: &WriteOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WriteOptions
impl PartialOrd for WriteOptions
impl StructuralPartialEq for WriteOptions
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnsafeUnpin for WriteOptions
impl UnwindSafe for WriteOptions
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