#[non_exhaustive]pub enum DuplexLimit {
FrameBytes,
TurnBytes,
TurnEvents,
}Expand description
Which opt-in DuplexOptions resource
limit an Error::DuplexLimitExceeded refers to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FrameBytes
One stdout frame, including its newline terminator, was larger than
DuplexOptions::max_frame_bytes.
TurnBytes
Stdout bytes consumed during one turn exceeded
DuplexOptions::max_turn_bytes.
TurnEvents
Events retained for one turn exceeded
DuplexOptions::max_turn_events.
Trait Implementations§
Source§impl Clone for DuplexLimit
impl Clone for DuplexLimit
impl Copy for DuplexLimit
Source§impl Debug for DuplexLimit
impl Debug for DuplexLimit
Source§impl Display for DuplexLimit
Available on crate feature async only.
impl Display for DuplexLimit
Available on crate feature
async only.impl Eq for DuplexLimit
Source§impl Hash for DuplexLimit
impl Hash for DuplexLimit
Source§impl PartialEq for DuplexLimit
impl PartialEq for DuplexLimit
impl StructuralPartialEq for DuplexLimit
Auto Trait Implementations§
impl Freeze for DuplexLimit
impl RefUnwindSafe for DuplexLimit
impl Send for DuplexLimit
impl Sync for DuplexLimit
impl Unpin for DuplexLimit
impl UnsafeUnpin for DuplexLimit
impl UnwindSafe for DuplexLimit
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