Struct suc::SucFile [−][src]
pub struct SucFile { /* fields omitted */ }
Expand description
A SucFile. Represents the actual file.
Implementations
impl SucFile
[src]
impl SucFile
[src]pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>
[src]
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>
[src]Opens an actual file as a sucfile. If the file at the given path does not exist, the file is created and then opened.
pub fn add(&mut self, key: &str, value: &str) -> Result<()>
[src]
pub fn add(&mut self, key: &str, value: &str) -> Result<()>
[src]Add key and hash of value to the file (key would be username, value would be password)
Returns Ok(()) if successful
Auto Trait Implementations
impl RefUnwindSafe for SucFile
impl Send for SucFile
impl Sync for SucFile
impl Unpin for SucFile
impl UnwindSafe for SucFile
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,