Struct rustbreak::backend::FileBackend [−][src]
pub struct FileBackend(_);
A backend using a file
Methods
impl FileBackend
[src]
impl FileBackend
pub fn open<P: AsRef<Path>>(path: P) -> Result<FileBackend>
[src]
pub fn open<P: AsRef<Path>>(path: P) -> Result<FileBackend>
Opens a new FileBackend for a given path, will create it if the file doesn't exist.
pub fn from_file(file: File) -> FileBackend
[src]
pub fn from_file(file: File) -> FileBackend
Use an already open File as the backend
pub fn into_inner(self) -> File
[src]
pub fn into_inner(self) -> File
Return the inner File
Trait Implementations
impl Debug for FileBackend
[src]
impl Debug for FileBackend
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Backend for FileBackend
[src]
impl Backend for FileBackend
Auto Trait Implementations
impl Send for FileBackend
impl Send for FileBackend
impl Sync for FileBackend
impl Sync for FileBackend