pub enum TypedCallError<E> {
SendFailed(SendError),
FlushFailed(Error),
RecvFailed(RecvError),
Response(ResponseError<E>),
}
Variants§
Implementations§
Source§impl<E> TypedCallError<E>
impl<E> TypedCallError<E>
Sourcepub fn is_send_failed(&self) -> bool
pub fn is_send_failed(&self) -> bool
Returns true if this is a TypedCallError::SendFailed
, otherwise false
Sourcepub fn as_send_failed_mut(&mut self) -> Option<&mut SendError>
pub fn as_send_failed_mut(&mut self) -> Option<&mut SendError>
Optionally returns mutable references to the inner fields if this is a TypedCallError::SendFailed
, otherwise None
Sourcepub fn as_send_failed(&self) -> Option<&SendError>
pub fn as_send_failed(&self) -> Option<&SendError>
Optionally returns references to the inner fields if this is a TypedCallError::SendFailed
, otherwise None
Sourcepub fn into_send_failed(self) -> Result<SendError, Self>
pub fn into_send_failed(self) -> Result<SendError, Self>
Returns the inner fields if this is a TypedCallError::SendFailed
, otherwise returns back the enum in the Err
case of the result
Sourcepub fn is_flush_failed(&self) -> bool
pub fn is_flush_failed(&self) -> bool
Returns true if this is a TypedCallError::FlushFailed
, otherwise false
Sourcepub fn as_flush_failed_mut(&mut self) -> Option<&mut Error>
pub fn as_flush_failed_mut(&mut self) -> Option<&mut Error>
Optionally returns mutable references to the inner fields if this is a TypedCallError::FlushFailed
, otherwise None
Sourcepub fn as_flush_failed(&self) -> Option<&Error>
pub fn as_flush_failed(&self) -> Option<&Error>
Optionally returns references to the inner fields if this is a TypedCallError::FlushFailed
, otherwise None
Sourcepub fn into_flush_failed(self) -> Result<Error, Self>
pub fn into_flush_failed(self) -> Result<Error, Self>
Returns the inner fields if this is a TypedCallError::FlushFailed
, otherwise returns back the enum in the Err
case of the result
Sourcepub fn is_recv_failed(&self) -> bool
pub fn is_recv_failed(&self) -> bool
Returns true if this is a TypedCallError::RecvFailed
, otherwise false
Sourcepub fn as_recv_failed_mut(&mut self) -> Option<&mut RecvError>
pub fn as_recv_failed_mut(&mut self) -> Option<&mut RecvError>
Optionally returns mutable references to the inner fields if this is a TypedCallError::RecvFailed
, otherwise None
Sourcepub fn as_recv_failed(&self) -> Option<&RecvError>
pub fn as_recv_failed(&self) -> Option<&RecvError>
Optionally returns references to the inner fields if this is a TypedCallError::RecvFailed
, otherwise None
Sourcepub fn into_recv_failed(self) -> Result<RecvError, Self>
pub fn into_recv_failed(self) -> Result<RecvError, Self>
Returns the inner fields if this is a TypedCallError::RecvFailed
, otherwise returns back the enum in the Err
case of the result
Sourcepub fn is_response(&self) -> bool
pub fn is_response(&self) -> bool
Returns true if this is a TypedCallError::Response
, otherwise false
Sourcepub fn as_response_mut(&mut self) -> Option<&mut ResponseError<E>>
pub fn as_response_mut(&mut self) -> Option<&mut ResponseError<E>>
Optionally returns mutable references to the inner fields if this is a TypedCallError::Response
, otherwise None
Sourcepub fn as_response(&self) -> Option<&ResponseError<E>>
pub fn as_response(&self) -> Option<&ResponseError<E>>
Optionally returns references to the inner fields if this is a TypedCallError::Response
, otherwise None
Sourcepub fn into_response(self) -> Result<ResponseError<E>, Self>
pub fn into_response(self) -> Result<ResponseError<E>, Self>
Returns the inner fields if this is a TypedCallError::Response
, otherwise returns back the enum in the Err
case of the result