mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 23:36:30 +03:00
Introduce a ContextBuilder struct (#3698)
The way to create a Context is now rather burdensome, users have to create and import a bunch of things just to get a Context. So let's introduce a builder. Notice that the builder can only produce an open context, if the context can not be opened it is dropped. This is on purpose, the Context itself can become RAII again at some point by doing this. Only the FFI needs to have the concept of an open and a closed Context.
This commit is contained in:
committed by
GitHub
parent
053c9372cb
commit
3150d2b94b
@@ -31,6 +31,8 @@
|
||||
|
||||
|
||||
|
||||
- Rust: Introduce a ContextBuilder #3698
|
||||
|
||||
### Changes
|
||||
- allow sender timestamp to be in the future, but not too much
|
||||
|
||||
|
||||
Reference in New Issue
Block a user