[−][src]Enum grammers_mtproto::errors::RequestError
This error occurs when a Remote Procedure call was unsuccessful.
The request should be retransmited when this happens, unless the
variant is InvalidParameters
.
Variants
RPCError(RpcError)
The parameters used in the request were invalid and caused a Remote Procedure Call error.
The call was dropped (cancelled), so the server will not process it.
The message sent to the server was invalid, and the request must be retransmitted.
Fields of BadMessage
code: i32
The code of the bad message error.
Deserialize(DeserializeError)
The deserialization of the response that was meant to confirm this request failed, so while the server technically responded to the request its answer is useless as it could not be understood properly.
Implementations
impl RequestError
[src]
pub fn should_retransmit(&self) -> bool
[src]
Trait Implementations
impl Debug for RequestError
[src]
impl From<DeserializeError> for RequestError
[src]
fn from(error: DeserializeError) -> Self
[src]
impl From<DeserializeError> for RequestError
[src]
fn from(error: DeserializeError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnwindSafe for RequestError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,