Skip to main content

transport

Function transport 

Source
pub fn transport(msg: impl Into<String>) -> Error
Expand description

Builds a [Error::Transport] with a text message.

§Examples

use brokapi_core::Error;

assert!(matches!(brokapi_tbank::error::transport("stream closed"), Error::Transport(_)));