#[non_exhaustive]pub struct LogAnswer {
pub lines: Vec<LogEntry>,
pub next: u64,
pub dropped: u64,
}Expand description
The log’s lines a Request::Log asked for.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.lines: Vec<LogEntry>The kept lines numbered since or more, oldest first.
next: u64The number the next line gets: the next request’s since.
dropped: u64How many lines numbered since or more the ring no longer keeps.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogAnswer
impl<'de> Deserialize<'de> for LogAnswer
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 LogAnswer
impl StructuralPartialEq for LogAnswer
Auto Trait Implementations§
impl Freeze for LogAnswer
impl RefUnwindSafe for LogAnswer
impl Send for LogAnswer
impl Sync for LogAnswer
impl Unpin for LogAnswer
impl UnsafeUnpin for LogAnswer
impl UnwindSafe for LogAnswer
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