pub struct OutputLimitConfig { /* private fields */ }Expand description
Configurable output size limit.
Threaded through KernelConfig → ExecContext → kernel pipeline execution.
Runtime-mutable via the kaish-output-limit builtin.
Implementations§
Source§impl OutputLimitConfig
impl OutputLimitConfig
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Whether output limiting is enabled.
Sourcepub fn head_bytes(&self) -> usize
pub fn head_bytes(&self) -> usize
Bytes of output head to preserve in truncated result.
Sourcepub fn tail_bytes(&self) -> usize
pub fn tail_bytes(&self) -> usize
Bytes of output tail to preserve in truncated result.
Sourcepub fn set_head_bytes(&mut self, bytes: usize)
pub fn set_head_bytes(&mut self, bytes: usize)
Set the head preview size.
Sourcepub fn set_tail_bytes(&mut self, bytes: usize)
pub fn set_tail_bytes(&mut self, bytes: usize)
Set the tail preview size.
Trait Implementations§
Source§impl Clone for OutputLimitConfig
impl Clone for OutputLimitConfig
Source§fn clone(&self) -> OutputLimitConfig
fn clone(&self) -> OutputLimitConfig
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 OutputLimitConfig
impl RefUnwindSafe for OutputLimitConfig
impl Send for OutputLimitConfig
impl Sync for OutputLimitConfig
impl Unpin for OutputLimitConfig
impl UnsafeUnpin for OutputLimitConfig
impl UnwindSafe for OutputLimitConfig
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