pub struct AttachmentFlags(/* private fields */);Expand description
Packed flags for attachment state (1 byte instead of multiple bools)
Implementations§
Source§impl AttachmentFlags
impl AttachmentFlags
pub const NONE: Self
pub fn is_downloading(self) -> bool
pub fn is_downloaded(self) -> bool
pub fn is_short_nonce(self) -> bool
pub fn set_downloading(&mut self, value: bool)
pub fn set_downloaded(&mut self, value: bool)
pub fn set_short_nonce(&mut self, value: bool)
pub fn from_bools(downloading: bool, downloaded: bool) -> Self
Trait Implementations§
Source§impl Clone for AttachmentFlags
impl Clone for AttachmentFlags
Source§fn clone(&self) -> AttachmentFlags
fn clone(&self) -> AttachmentFlags
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 AttachmentFlags
Source§impl Debug for AttachmentFlags
impl Debug for AttachmentFlags
Source§impl Default for AttachmentFlags
impl Default for AttachmentFlags
Source§fn default() -> AttachmentFlags
fn default() -> AttachmentFlags
Returns the “default value” for a type. Read more
impl Eq for AttachmentFlags
Source§impl PartialEq for AttachmentFlags
impl PartialEq for AttachmentFlags
impl StructuralPartialEq for AttachmentFlags
Auto Trait Implementations§
impl Freeze for AttachmentFlags
impl RefUnwindSafe for AttachmentFlags
impl Send for AttachmentFlags
impl Sync for AttachmentFlags
impl Unpin for AttachmentFlags
impl UnsafeUnpin for AttachmentFlags
impl UnwindSafe for AttachmentFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more