pub enum PolymarketUsError {
MissingAuth(&'static str),
InvalidStreamConfig(String),
BadRequest(String),
Authentication(String),
NotFound(String),
RateLimited(String),
Server(String),
Api {
status: u16,
message: String,
},
Transport(Error),
WebSocket(Error),
Decode(Error),
}Variants§
MissingAuth(&'static str)
InvalidStreamConfig(String)
BadRequest(String)
Authentication(String)
NotFound(String)
RateLimited(String)
Server(String)
Api
Transport(Error)
WebSocket(Error)
Decode(Error)
Implementations§
Source§impl PolymarketUsError
impl PolymarketUsError
pub fn from_status(status: StatusCode, message: String) -> Self
Trait Implementations§
Source§impl Debug for PolymarketUsError
impl Debug for PolymarketUsError
Source§impl Display for PolymarketUsError
impl Display for PolymarketUsError
Source§impl Error for PolymarketUsError
impl Error for PolymarketUsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for PolymarketUsError
impl From<Error> for PolymarketUsError
Source§impl From<Error> for PolymarketUsError
impl From<Error> for PolymarketUsError
Auto Trait Implementations§
impl !Freeze for PolymarketUsError
impl !RefUnwindSafe for PolymarketUsError
impl !UnwindSafe for PolymarketUsError
impl Send for PolymarketUsError
impl Sync for PolymarketUsError
impl Unpin for PolymarketUsError
impl UnsafeUnpin for PolymarketUsError
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