pub struct ArchiveSpacePreview {
pub sessions: usize,
pub bytes: u64,
pub reclaimable_sessions: usize,
pub reclaimable_bytes: u64,
}Expand description
How much disk Mjolnir’s own copies of sessions use, and how much an
archive_after_days value would free. “Mjolnir’s own copy” is the
checkpoint archive plus the session’s image attachments; the conversation
itself lives in the SessionWiki index and is not counted, because archiving
keeps it. The type lives in mj-core so the terminal UI can name it too.
How much disk Mjolnir’s own copies of sessions use, and how much an
archive_after_days value would free. Settings shows this on the
SessionWiki page so the effect of a value is visible before it is saved.
Fields§
§sessions: usizeEvery session record Mjolnir holds, archived or not.
bytes: u64What those sessions’ checkpoints and attachments occupy.
reclaimable_sessions: usizeThe sessions an archive_after_days value would catch, and their
share of bytes. Both are zero when no value is set.
reclaimable_bytes: u64Trait Implementations§
Source§impl Clone for ArchiveSpacePreview
impl Clone for ArchiveSpacePreview
Source§fn clone(&self) -> ArchiveSpacePreview
fn clone(&self) -> ArchiveSpacePreview
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArchiveSpacePreview
impl Debug for ArchiveSpacePreview
Source§impl<'de> Deserialize<'de> for ArchiveSpacePreview
impl<'de> Deserialize<'de> for ArchiveSpacePreview
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArchiveSpacePreview, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArchiveSpacePreview, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ArchiveSpacePreview
Source§impl PartialEq for ArchiveSpacePreview
impl PartialEq for ArchiveSpacePreview
Source§impl Serialize for ArchiveSpacePreview
impl Serialize for ArchiveSpacePreview
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ArchiveSpacePreview
Auto Trait Implementations§
impl Freeze for ArchiveSpacePreview
impl RefUnwindSafe for ArchiveSpacePreview
impl Send for ArchiveSpacePreview
impl Sync for ArchiveSpacePreview
impl Unpin for ArchiveSpacePreview
impl UnsafeUnpin for ArchiveSpacePreview
impl UnwindSafe for ArchiveSpacePreview
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> 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> ⓘ
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