pub struct ChannelConfig { /* private fields */ }
Expand description
Channel configuration
These settings apply to both client and server channels.
Implementations§
Source§impl ChannelConfig
impl ChannelConfig
Sourcepub fn max_frame_size(self, value: u32) -> Result<Self, ChannelConfigError>
pub fn max_frame_size(self, value: u32) -> Result<Self, ChannelConfigError>
Set the maximum frame size.
Sourcepub fn max_payload_size(self, value: usize) -> Result<Self, ChannelConfigError>
pub fn max_payload_size(self, value: usize) -> Result<Self, ChannelConfigError>
Set the maximum payload size.
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
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 ChannelConfig
impl Debug for ChannelConfig
Auto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnwindSafe for ChannelConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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