pub struct ExactIdentityValidator { /* private fields */ }Expand description
A strict exact-output check for one or more staged member programs.
Implementations§
Source§impl ExactIdentityValidator
impl ExactIdentityValidator
Sourcepub fn new(member: MemberId, expected_output: impl Into<String>) -> Self
pub fn new(member: MemberId, expected_output: impl Into<String>) -> Self
Creates a check for one member’s exact stdout bytes.
Sourcepub fn for_members<I>(members: I, expected_output: impl Into<String>) -> Selfwhere
I: IntoIterator<Item = MemberId>,
pub fn for_members<I>(members: I, expected_output: impl Into<String>) -> Selfwhere
I: IntoIterator<Item = MemberId>,
Creates matching exact-output checks for a bundle of members.
Sourcepub fn args<I, S>(self, args: I) -> Self
pub fn args<I, S>(self, args: I) -> Self
Sets literal argv arguments for every configured identity check.
Sourcepub fn max_output_bytes(self, limit: usize) -> Self
pub fn max_output_bytes(self, limit: usize) -> Self
Sets the per-stream output cap.
Trait Implementations§
Source§impl Clone for ExactIdentityValidator
impl Clone for ExactIdentityValidator
Auto Trait Implementations§
impl Freeze for ExactIdentityValidator
impl RefUnwindSafe for ExactIdentityValidator
impl Send for ExactIdentityValidator
impl Sync for ExactIdentityValidator
impl Unpin for ExactIdentityValidator
impl UnsafeUnpin for ExactIdentityValidator
impl UnwindSafe for ExactIdentityValidator
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