pub enum Difference {
Empty(DifferenceEmpty),
Difference(Difference),
Slice(DifferenceSlice),
TooLong(DifferenceTooLong),
}Expand description
Variants§
Implementations§
Source§impl Difference
impl Difference
Sourcepub fn new_messages(&self) -> Option<&Vec<Message>>
pub fn new_messages(&self) -> Option<&Vec<Message>>
Returns new_messages if present in this variant.
Sourcepub fn new_encrypted_messages(&self) -> Option<&Vec<EncryptedMessage>>
pub fn new_encrypted_messages(&self) -> Option<&Vec<EncryptedMessage>>
Returns new_encrypted_messages if present in this variant.
Sourcepub fn other_updates(&self) -> Option<&Vec<Update>>
pub fn other_updates(&self) -> Option<&Vec<Update>>
Returns other_updates if present in this variant.
Trait Implementations§
Source§impl Clone for Difference
impl Clone for Difference
Source§fn clone(&self) -> Difference
fn clone(&self) -> Difference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Difference
impl Debug for Difference
Source§impl Deserializable for Difference
impl Deserializable for Difference
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 From<Difference> for Difference
impl From<Difference> for Difference
Source§fn from(x: Difference) -> Self
fn from(x: Difference) -> Self
Converts to this type from the input type.
Source§impl From<DifferenceEmpty> for Difference
impl From<DifferenceEmpty> for Difference
Source§fn from(x: DifferenceEmpty) -> Self
fn from(x: DifferenceEmpty) -> Self
Converts to this type from the input type.
Source§impl From<DifferenceSlice> for Difference
impl From<DifferenceSlice> for Difference
Source§fn from(x: DifferenceSlice) -> Self
fn from(x: DifferenceSlice) -> Self
Converts to this type from the input type.
Source§impl From<DifferenceTooLong> for Difference
impl From<DifferenceTooLong> for Difference
Source§fn from(x: DifferenceTooLong) -> Self
fn from(x: DifferenceTooLong) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Difference
impl PartialEq for Difference
Source§impl Serializable for Difference
impl Serializable for Difference
impl StructuralPartialEq for Difference
Source§impl TryFrom<Difference> for DifferenceEmpty
impl TryFrom<Difference> for DifferenceEmpty
Source§type Error = Difference
type Error = Difference
The type returned in the event of a conversion error.
Source§impl TryFrom<Difference> for Difference
impl TryFrom<Difference> for Difference
Source§type Error = Difference
type Error = Difference
The type returned in the event of a conversion error.
Source§impl TryFrom<Difference> for DifferenceSlice
impl TryFrom<Difference> for DifferenceSlice
Source§type Error = Difference
type Error = Difference
The type returned in the event of a conversion error.
Source§impl TryFrom<Difference> for DifferenceTooLong
impl TryFrom<Difference> for DifferenceTooLong
Source§type Error = Difference
type Error = Difference
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Difference
impl RefUnwindSafe for Difference
impl Send for Difference
impl Sync for Difference
impl Unpin for Difference
impl UnsafeUnpin for Difference
impl UnwindSafe for Difference
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