Struct redact_crypto::FsByteSource [−][src]
pub struct FsByteSource { /* fields omitted */ }Expand description
A source that is a path to a file on the filesystem. Bytes are loaded on creation of the FsBytesSource. Bytes can be refreshed from the filesystem by calling reload. To get fresh bytes on every call of get, use an UncachedFsBytesSource.
Implementations
Creates an FsBytesSource from a path on the filesystem
Re-reads the file and stores its bytes in memory
Re-writes the file at the path to the given bytes
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for FsByteSourceimpl Send for FsByteSourceimpl Sync for FsByteSourceimpl Unpin for FsByteSourceimpl UnwindSafe for FsByteSourceBlanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeIdTODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V