Struct kitchen_fridge::cache::Cache[][src]

pub struct Cache { /* fields omitted */ }
Expand description

A CalDAV source that stores its items in a local folder.

It automatically updates the content of the folder when dropped (see its Drop implementation), but you can also manually call Cache::save_to_folder

Most of its methods are part of the CalDavSource trait implementation

Implementations

Get the path to the cache folder

Initialize a cache from the content of a valid backing folder if it exists. Returns an error otherwise

Initialize a cache with the default contents

Store the current Cache to its backing folder

Note that this is automatically called when self is dropped

Trait Implementations

Returns the current calendars that this source contains This function may trigger an update (that can be a long process, or that can even fail, e.g. in case of a remote server) Read more

Returns the calendar matching the URL

Create a calendar if it did not exist, and return it

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more