pub struct Policy {
pub unverified_folder: String,
pub unproven_max_files: usize,
pub unproven_max_bytes: u64,
pub max_file_bytes: u64,
pub max_message_chars: usize,
pub answer_wait: Duration,
}Fields§
§unverified_folder: StringFolder under the save folder for files from a sender that could not prove its key. Kept apart from the owner’s own files.
unproven_max_files: usizeMost files one request may name when the sender could not prove its key.
unproven_max_bytes: u64Most bytes one request may name when the sender could not prove its key.
max_file_bytes: u64Largest single file any request may name, proven or not.
max_message_chars: usizeLongest text message kept, in characters (not bytes). Longer text is cut.
answer_wait: DurationHow long a request waits for the owner’s answer before it is declined.
Trait Implementations§
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more