pub struct AllowAll;Expand description
Every write allowed — the meter until V2-31’s.
Trait Implementations§
impl Copy for AllowAll
Source§impl Quota for AllowAll
impl Quota for AllowAll
Source§fn reserve(&self, author: &str, bytes: u64) -> Result<Reserved, String>
fn reserve(&self, author: &str, bytes: u64) -> Result<Reserved, String>
Reserve
bytes of notes.bytes for author; Err refuses the
write, in words, and nothing is written.Source§fn reserve_count(&self, author: &str) -> Result<Reserved, String>
fn reserve_count(&self, author: &str) -> Result<Reserved, String>
V2-31: one note made (
notes.count) for author; refused like
reserve. Every one allowed unless the meter says.Source§fn moved(&self, _author: &str, _delta: i64)
fn moved(&self, _author: &str, _delta: i64)
V2-31: a squash moved what
author keeps by delta bytes — less
(a credit: the log shrank) or, rarely, more (their share of the
snapshot past what was folded). Never refused: the squash is done.Auto Trait Implementations§
impl Forget for AllowAll
impl Freeze for AllowAll
impl Move for AllowAll
impl RefUnwindSafe for AllowAll
impl Send for AllowAll
impl Sync for AllowAll
impl Unpin for AllowAll
impl UnsafeUnpin for AllowAll
impl UnwindSafe for AllowAll
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