pub enum Output {
DisplayData(DisplayData),
Stream(Stream),
ExecuteResult(ExecuteResult),
Error(Error),
}
Variants§
Implementations§
Source§impl Output
impl Output
Sourcepub fn is_display_data(&self) -> bool
pub fn is_display_data(&self) -> bool
Returns true if this is a Output::DisplayData
, otherwise false
Sourcepub fn as_display_data_mut(&mut self) -> Option<&mut DisplayData>
pub fn as_display_data_mut(&mut self) -> Option<&mut DisplayData>
Optionally returns mutable references to the inner fields if this is a Output::DisplayData
, otherwise None
Sourcepub fn as_display_data(&self) -> Option<&DisplayData>
pub fn as_display_data(&self) -> Option<&DisplayData>
Optionally returns references to the inner fields if this is a Output::DisplayData
, otherwise None
Sourcepub fn into_display_data(self) -> Result<DisplayData, Self>
pub fn into_display_data(self) -> Result<DisplayData, Self>
Returns the inner fields if this is a Output::DisplayData
, otherwise returns back the enum in the Err
case of the result
Sourcepub fn as_stream_mut(&mut self) -> Option<&mut Stream>
pub fn as_stream_mut(&mut self) -> Option<&mut Stream>
Optionally returns mutable references to the inner fields if this is a Output::Stream
, otherwise None
Sourcepub fn as_stream(&self) -> Option<&Stream>
pub fn as_stream(&self) -> Option<&Stream>
Optionally returns references to the inner fields if this is a Output::Stream
, otherwise None
Sourcepub fn into_stream(self) -> Result<Stream, Self>
pub fn into_stream(self) -> Result<Stream, Self>
Returns the inner fields if this is a Output::Stream
, otherwise returns back the enum in the Err
case of the result
Sourcepub fn is_execute_result(&self) -> bool
pub fn is_execute_result(&self) -> bool
Returns true if this is a Output::ExecuteResult
, otherwise false
Sourcepub fn as_execute_result_mut(&mut self) -> Option<&mut ExecuteResult>
pub fn as_execute_result_mut(&mut self) -> Option<&mut ExecuteResult>
Optionally returns mutable references to the inner fields if this is a Output::ExecuteResult
, otherwise None
Sourcepub fn as_execute_result(&self) -> Option<&ExecuteResult>
pub fn as_execute_result(&self) -> Option<&ExecuteResult>
Optionally returns references to the inner fields if this is a Output::ExecuteResult
, otherwise None
Sourcepub fn into_execute_result(self) -> Result<ExecuteResult, Self>
pub fn into_execute_result(self) -> Result<ExecuteResult, Self>
Returns the inner fields if this is a Output::ExecuteResult
, otherwise returns back the enum in the Err
case of the result
Sourcepub fn as_error_mut(&mut self) -> Option<&mut Error>
pub fn as_error_mut(&mut self) -> Option<&mut Error>
Optionally returns mutable references to the inner fields if this is a Output::Error
, otherwise None
Sourcepub fn as_error(&self) -> Option<&Error>
pub fn as_error(&self) -> Option<&Error>
Optionally returns references to the inner fields if this is a Output::Error
, otherwise None
Sourcepub fn into_error(self) -> Result<Error, Self>
pub fn into_error(self) -> Result<Error, Self>
Returns the inner fields if this is a Output::Error
, otherwise returns back the enum in the Err
case of the result