#[non_exhaustive]pub struct DirectTransportOptions {
pub max_message_size: u32,
pub app_data: AppData,
}
Expand description
DirectTransport
options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.max_message_size: u32
Maximum allowed size for direct messages sent from DataProducers. Default 262_144.
app_data: AppData
Custom application data.
Trait Implementations§
Source§impl Clone for DirectTransportOptions
impl Clone for DirectTransportOptions
Source§fn clone(&self) -> DirectTransportOptions
fn clone(&self) -> DirectTransportOptions
Returns a copy of the value. Read more
1.0.0 · 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 DirectTransportOptions
impl Debug for DirectTransportOptions
Auto Trait Implementations§
impl Freeze for DirectTransportOptions
impl !RefUnwindSafe for DirectTransportOptions
impl Send for DirectTransportOptions
impl Sync for DirectTransportOptions
impl Unpin for DirectTransportOptions
impl !UnwindSafe for DirectTransportOptions
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