pub struct LogStreamFile {
pub path: String,
pub max_file_size: i64,
pub redirect_stderr: bool,
}
Expand description
The log is written to a file
Fields§
§path: String
Path to the file to where the internal TDLib log will be written
max_file_size: i64
The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes
redirect_stderr: bool
Pass true to additionally redirect stderr to the log file. Ignored on Windows
Trait Implementations§
Source§impl Clone for LogStreamFile
impl Clone for LogStreamFile
Source§fn clone(&self) -> LogStreamFile
fn clone(&self) -> LogStreamFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LogStreamFile
impl Debug for LogStreamFile
Source§impl Default for LogStreamFile
impl Default for LogStreamFile
Source§fn default() -> LogStreamFile
fn default() -> LogStreamFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogStreamFile
impl<'de> Deserialize<'de> for LogStreamFile
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
Source§impl PartialEq for LogStreamFile
impl PartialEq for LogStreamFile
Source§impl Serialize for LogStreamFile
impl Serialize for LogStreamFile
impl StructuralPartialEq for LogStreamFile
Auto Trait Implementations§
impl Freeze for LogStreamFile
impl RefUnwindSafe for LogStreamFile
impl Send for LogStreamFile
impl Sync for LogStreamFile
impl Unpin for LogStreamFile
impl UnwindSafe for LogStreamFile
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