pub struct PipedInput { /* private fields */ }Expand description
Bytes destined for a child’s stdin, which never appear anywhere else.
The inner value is a SecretBox and the Debug implementation prints a
length. That is unconditional rather than opt-in: the two things this
adapter pipes are a GitHub credential document and a release archive, and
treating both as sensitive costs nothing while removing the possibility
that a future caller pipes a secret through the “not a secret” variant.
Implementations§
Source§impl PipedInput
impl PipedInput
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Self
pub fn from_bytes(bytes: Vec<u8>) -> Self
Takes ownership of bytes to be written to the child.
Sourcepub fn from_secret_text(text: &SecretString) -> Self
pub fn from_secret_text(text: &SecretString) -> Self
The UTF-8 encoding of a secret string, which is how a stored credential document crosses the Windows/Linux boundary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipedInput
impl RefUnwindSafe for PipedInput
impl Send for PipedInput
impl Sync for PipedInput
impl Unpin for PipedInput
impl UnsafeUnpin for PipedInput
impl UnwindSafe for PipedInput
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