pub struct ProtocolLimits { /* private fields */ }Expand description
Conservative protocol allocation limits.
Implementations§
Source§impl ProtocolLimits
impl ProtocolLimits
Sourcepub fn max_frame_len(self, limit: usize) -> Result<Self, ProtocolLimitError>
pub fn max_frame_len(self, limit: usize) -> Result<Self, ProtocolLimitError>
Sets the maximum complete tagged frame size.
§Errors
Returns an error outside PostgreSQL’s tagged-frame range.
Sourcepub fn without_frame_limit(self) -> Self
pub fn without_frame_limit(self) -> Self
Explicitly selects the largest tagged frame PostgreSQL can encode.
Trait Implementations§
Source§impl Clone for ProtocolLimits
impl Clone for ProtocolLimits
Source§fn clone(&self) -> ProtocolLimits
fn clone(&self) -> ProtocolLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProtocolLimits
Source§impl Debug for ProtocolLimits
impl Debug for ProtocolLimits
Source§impl Default for ProtocolLimits
impl Default for ProtocolLimits
impl Eq for ProtocolLimits
Source§impl PartialEq for ProtocolLimits
impl PartialEq for ProtocolLimits
impl StructuralPartialEq for ProtocolLimits
Auto Trait Implementations§
impl Freeze for ProtocolLimits
impl RefUnwindSafe for ProtocolLimits
impl Send for ProtocolLimits
impl Sync for ProtocolLimits
impl Unpin for ProtocolLimits
impl UnsafeUnpin for ProtocolLimits
impl UnwindSafe for ProtocolLimits
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