Struct respite::RespConfig
source · pub struct RespConfig { /* private fields */ }
Expand description
Configuration of limits for reading a RESP stream. All values are shared across threads to prevent canceling futures.
Implementations§
source§impl RespConfig
impl RespConfig
sourcepub fn blob_limit(&self) -> usize
pub fn blob_limit(&self) -> usize
Get the blog frame size limit.
sourcepub fn set_blob_limit(&mut self, value: usize)
pub fn set_blob_limit(&mut self, value: usize)
Set the blob frame size limit.
sourcepub fn inline_limit(&self) -> usize
pub fn inline_limit(&self) -> usize
Get the inline request size limit.
sourcepub fn set_inline_limit(&mut self, value: usize)
pub fn set_inline_limit(&mut self, value: usize)
Set the inline request size limit.
Trait Implementations§
source§impl Clone for RespConfig
impl Clone for RespConfig
source§fn clone(&self) -> RespConfig
fn clone(&self) -> RespConfig
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 RespConfig
impl Debug for RespConfig
Auto Trait Implementations§
impl Freeze for RespConfig
impl RefUnwindSafe for RespConfig
impl Send for RespConfig
impl Sync for RespConfig
impl Unpin for RespConfig
impl UnwindSafe for RespConfig
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