pub enum HistoryAccess {
None,
SinceJoined,
LastN(u32),
Full,
}Expand description
How much channel history a member may read (ADR-0014, specification §8.2, §10.6). Stamped on each message at send time.
Variants§
None
Only messages sent while the member can see the channel live.
SinceJoined
Messages sent after the member gained access.
LastN(u32)
The last n messages before the member gained access (1 ≤ n ≤ 10 000), then live.
Full
Everything.
Trait Implementations§
Source§impl Clone for HistoryAccess
impl Clone for HistoryAccess
Source§fn clone(&self) -> HistoryAccess
fn clone(&self) -> HistoryAccess
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 HistoryAccess
Source§impl Debug for HistoryAccess
impl Debug for HistoryAccess
Source§impl Default for HistoryAccess
impl Default for HistoryAccess
Source§fn default() -> HistoryAccess
fn default() -> HistoryAccess
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HistoryAccess
impl<'de> Deserialize<'de> for HistoryAccess
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HistoryAccess
Source§impl Hash for HistoryAccess
impl Hash for HistoryAccess
Source§impl PartialEq for HistoryAccess
impl PartialEq for HistoryAccess
Source§impl Serialize for HistoryAccess
impl Serialize for HistoryAccess
impl StructuralPartialEq for HistoryAccess
Auto Trait Implementations§
impl Freeze for HistoryAccess
impl RefUnwindSafe for HistoryAccess
impl Send for HistoryAccess
impl Sync for HistoryAccess
impl Unpin for HistoryAccess
impl UnsafeUnpin for HistoryAccess
impl UnwindSafe for HistoryAccess
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