pub enum Chunk {
Output(Vec<u8>),
Error(Vec<u8>),
Debug(Vec<u8>),
Result(i32),
Input(i32),
LineInput(i32),
}
Expand description
A type representing a “chunk” of data received from the command server.
Variants§
Output(Vec<u8>)
Data received on the output channel (equivalent to stdout).
Error(Vec<u8>)
Data received on the error channel (equivalent to stderr).
Debug(Vec<u8>)
Data received on the debug channel (log entries).
Result(i32)
The exit code of a Mercurial command.
Input(i32)
Indicates that the client should send input of the given maximum length.
LineInput(i32)
Indicates that the client should send line-oriented input of the given maximum length.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
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