pub struct MsgPackConfig { /* private fields */ }Implementations§
Source§impl MsgPackConfig
impl MsgPackConfig
Sourcepub fn limit(&mut self, limit: usize) -> &mut Self
pub fn limit(&mut self, limit: usize) -> &mut Self
Set maximum accepted payload size in bytes. The default limit is 256KiB.
pub fn error_handler<F>(&mut self, handler: F) -> &mut Self
Trait Implementations§
Source§impl Clone for MsgPackConfig
impl Clone for MsgPackConfig
Source§fn clone(&self) -> MsgPackConfig
fn clone(&self) -> MsgPackConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MsgPackConfig
impl !RefUnwindSafe for MsgPackConfig
impl Send for MsgPackConfig
impl Sync for MsgPackConfig
impl Unpin for MsgPackConfig
impl !UnwindSafe for MsgPackConfig
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