pub struct MessageChannelSettings {
pub channel: PacketChannel,
pub channel_mode: MessageChannelMode,
pub message_buffer_size: usize,
pub packet_buffer_size: usize,
}
Fields
channel: PacketChannel
channel_mode: MessageChannelMode
message_buffer_size: usize
The buffer size for the mpsc channel of messages that transports messages of this type to / from the network task.
packet_buffer_size: usize
The buffer size for the mpsc channel of packets for this message type that transports packets to / from the packet multiplexer.
Trait Implementations
sourceimpl Clone for MessageChannelSettings
impl Clone for MessageChannelSettings
sourcefn clone(&self) -> MessageChannelSettings
fn clone(&self) -> MessageChannelSettings
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 Debug for MessageChannelSettings
impl Debug for MessageChannelSettings
sourceimpl PartialEq<MessageChannelSettings> for MessageChannelSettings
impl PartialEq<MessageChannelSettings> for MessageChannelSettings
sourcefn eq(&self, other: &MessageChannelSettings) -> bool
fn eq(&self, other: &MessageChannelSettings) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MessageChannelSettings) -> bool
fn ne(&self, other: &MessageChannelSettings) -> bool
This method tests for !=
.
impl StructuralPartialEq for MessageChannelSettings
Auto Trait Implementations
impl RefUnwindSafe for MessageChannelSettings
impl Send for MessageChannelSettings
impl Sync for MessageChannelSettings
impl Unpin for MessageChannelSettings
impl UnwindSafe for MessageChannelSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more