pub struct Error {
pub code: i32,
pub text: String,
}Expand description
Fields§
§code: i32§text: StringTrait Implementations§
Source§impl Deserializable for Error
impl Deserializable for Error
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 Error
impl Identifiable for Error
Source§const CONSTRUCTOR_ID: u32 = 0xc4b9f9bb
const CONSTRUCTOR_ID: u32 = 0xc4b9f9bb
The constructor ID as specified in the TL schema.
Source§impl Serializable for Error
impl Serializable for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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