pub enum Sink {
Stderr,
Null,
}Expand description
Where the wrapped update’s standard output (fd 1) is sent while it runs.
The redirect is applied at the file-descriptor level and therefore also captures output from child processes and native libraries, not just the current process’s buffered stdout.
Named Sink rather than “target” to avoid colliding with
ReleaseUpdate::target, which reports the platform target triple.
Variants§
Stderr
Fold stdout into the process’s standard error (fd 2).
Output is preserved as out-of-band diagnostics. This is the default.
Null
Discard stdout entirely, redirecting it to the /dev/null device on
Unix or the NUL device on Windows.
Use this for a truly hidden update whose output should vanish.
Trait Implementations§
impl Copy for Sink
impl Eq for Sink
impl StructuralPartialEq for Sink
Auto Trait Implementations§
impl Freeze for Sink
impl RefUnwindSafe for Sink
impl Send for Sink
impl Sync for Sink
impl Unpin for Sink
impl UnsafeUnpin for Sink
impl UnwindSafe for Sink
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.