pub struct RpcError {
pub error_code: i32,
pub error_message: String,
}Expand description
Fields§
§error_code: i32§error_message: StringTrait Implementations§
Source§impl Deserializable for RpcError
impl Deserializable for RpcError
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl Identifiable for RpcError
impl Identifiable for RpcError
Source§const CONSTRUCTOR_ID: u32 = 0x2144ca19
const CONSTRUCTOR_ID: u32 = 0x2144ca19
The constructor ID as specified in the TL schema.
Source§impl Serializable for RpcError
impl Serializable for RpcError
impl StructuralPartialEq for RpcError
Auto Trait Implementations§
impl Freeze for RpcError
impl RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl UnsafeUnpin for RpcError
impl UnwindSafe for RpcError
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