[−][src]Struct file_rotator::RotatingFile
As per the name, a rotating file
Handles being a fake file which will automagicaly rotate as bytes are written into it
Implementations
impl RotatingFile[src]
pub fn new<Name, Directory>(
name: Name,
directory: Directory,
rotate_every: RotationPeriod,
max_files: usize
) -> Self where
Name: Into<Cow<'static, str>>,
Directory: Into<PathBuf>, [src]
name: Name,
directory: Directory,
rotate_every: RotationPeriod,
max_files: usize
) -> Self where
Name: Into<Cow<'static, str>>,
Directory: Into<PathBuf>,
Create a new rotating file with the given base name, in the given directory, rotating every given period and with a max of a given number of files
Trait Implementations
impl Debug for RotatingFile[src]
impl Write for RotatingFile[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>[src]
fn flush(&mut self) -> Result<()>[src]
fn write_vectored(&mut self, bufs: &[IoSlice]) -> Result<usize, Error>1.36.0[src]
fn is_write_vectored(&self) -> bool[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>1.0.0[src]
fn write_all_vectored(&mut self, bufs: &mut [IoSlice]) -> Result<(), Error>[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>1.0.0[src]
fn by_ref(&mut self) -> &mut Self1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for RotatingFile
impl Send for RotatingFile
impl Sync for RotatingFile
impl Unpin for RotatingFile
impl UnwindSafe for RotatingFile
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,