pub struct ErrorMessages;Expand description
Common error messages builder for consistent error reporting
Implementations§
Source§impl ErrorMessages
impl ErrorMessages
Sourcepub fn websocket_connect(exchange: &str) -> SmartString
pub fn websocket_connect(exchange: &str) -> SmartString
Create WebSocket connection error message
Sourcepub fn websocket_timeout(exchange: &str) -> SmartString
pub fn websocket_timeout(exchange: &str) -> SmartString
Create WebSocket timeout error message
Sourcepub fn json_parse(message_type: &str) -> SmartString
pub fn json_parse(message_type: &str) -> SmartString
Create JSON parsing error message
Sourcepub fn auth_required(endpoint: &str) -> SmartString
pub fn auth_required(endpoint: &str) -> SmartString
Create authentication required error message
Sourcepub fn api_response(status: u16, endpoint: &str) -> SmartString
pub fn api_response(status: u16, endpoint: &str) -> SmartString
Create API response error message
Auto Trait Implementations§
impl Freeze for ErrorMessages
impl RefUnwindSafe for ErrorMessages
impl Send for ErrorMessages
impl Sync for ErrorMessages
impl Unpin for ErrorMessages
impl UnwindSafe for ErrorMessages
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