Enum AttachmentWrite
#[non_exhaustive]pub enum AttachmentWrite {
Decoded,
Default,
Set,
}Expand description
Why a value is stored, which decides what else changes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decoded
A saved value just decoded: nothing else changes.
Default
The type’s default, inserted by a read: clients hear of it if the type syncs.
Set
A value a mod set: clients hear of it if the type syncs, and the saved form it replaces is dropped.
Trait Implementations§
§impl Clone for AttachmentWrite
impl Clone for AttachmentWrite
§fn clone(&self) -> AttachmentWrite
fn clone(&self) -> AttachmentWrite
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 moreimpl Copy for AttachmentWrite
§impl Debug for AttachmentWrite
impl Debug for AttachmentWrite
impl Eq for AttachmentWrite
§impl PartialEq for AttachmentWrite
impl PartialEq for AttachmentWrite
impl StructuralPartialEq for AttachmentWrite
§impl Wire for AttachmentWrite
impl Wire for AttachmentWrite
Auto Trait Implementations§
impl Freeze for AttachmentWrite
impl RefUnwindSafe for AttachmentWrite
impl Send for AttachmentWrite
impl Sync for AttachmentWrite
impl Unpin for AttachmentWrite
impl UnsafeUnpin for AttachmentWrite
impl UnwindSafe for AttachmentWrite
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