pub struct PreviewConfiguration {
pub max_preview_bytes: NonZeroUsize,
pub max_preview_duration: Duration,
}
Expand description
Configuration for the initial preview of the client connection.
Fields§
§max_preview_bytes: NonZeroUsize
The maximum number of bytes to preview. Recommended value is 8 bytes.
max_preview_duration: Duration
The maximum duration to preview for. Recommended value is 10 seconds.
Trait Implementations§
Source§impl Clone for PreviewConfiguration
impl Clone for PreviewConfiguration
Source§fn clone(&self) -> PreviewConfiguration
fn clone(&self) -> PreviewConfiguration
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PreviewConfiguration
impl Debug for PreviewConfiguration
Source§impl Default for PreviewConfiguration
impl Default for PreviewConfiguration
impl Copy for PreviewConfiguration
Auto Trait Implementations§
impl Freeze for PreviewConfiguration
impl RefUnwindSafe for PreviewConfiguration
impl Send for PreviewConfiguration
impl Sync for PreviewConfiguration
impl Unpin for PreviewConfiguration
impl UnwindSafe for PreviewConfiguration
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