pub enum IgnoreMediaRetentionPolicy {
Yes,
No,
}
Expand description
Whether the MediaRetentionPolicy
should be ignored for the current
content.
Some media cache actions are noops when the media content that is processed is filtered out by the policy. This can break some features of the SDK, like the send queue, that expects to be able to persist all media files in the store to restore them when the client is restored.
This can be converted to a boolean with
IgnoreMediaRetentionPolicy::is_yes()
.
Variants§
Yes
The media retention policy will be ignored and the current action will not be a noop.
Any media content in this state must NOT be used when applying a
MediaRetentionPolicy
. This applies to ANY criteria, like the maximum
file size, the maximum cache size or the last access expiry.
This state is supposed to be transient, and to only be used internally by the SDK.
No
The media retention policy will be respected and the current action might be a noop.
Implementations§
Source§impl IgnoreMediaRetentionPolicy
impl IgnoreMediaRetentionPolicy
Sourcepub fn is_yes(self) -> bool
pub fn is_yes(self) -> bool
Whether this is an IgnoreMediaRetentionPolicy::Yes
variant.
Trait Implementations§
Source§impl Clone for IgnoreMediaRetentionPolicy
impl Clone for IgnoreMediaRetentionPolicy
Source§fn clone(&self) -> IgnoreMediaRetentionPolicy
fn clone(&self) -> IgnoreMediaRetentionPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IgnoreMediaRetentionPolicy
impl Debug for IgnoreMediaRetentionPolicy
impl Copy for IgnoreMediaRetentionPolicy
impl Eq for IgnoreMediaRetentionPolicy
impl StructuralPartialEq for IgnoreMediaRetentionPolicy
Auto Trait Implementations§
impl Freeze for IgnoreMediaRetentionPolicy
impl RefUnwindSafe for IgnoreMediaRetentionPolicy
impl Send for IgnoreMediaRetentionPolicy
impl Sync for IgnoreMediaRetentionPolicy
impl Unpin for IgnoreMediaRetentionPolicy
impl UnwindSafe for IgnoreMediaRetentionPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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