pub struct LogServerSettings {
pub authorize: Option<Box<dyn Fn(&NodeId, &MerkleEntry) -> Result<(), Error> + Send>>,
}Expand description
Fields§
Optional callback invoked for every write request before it is applied.
Receives the requester’s NodeId and the proposed MerkleEntry. Return
Ok(()) to allow the write or Err(e) to reject it with the given error code.
When None, all writes are unconditionally rejected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogServerSettings
impl !RefUnwindSafe for LogServerSettings
impl Send for LogServerSettings
impl !Sync for LogServerSettings
impl Unpin for LogServerSettings
impl UnsafeUnpin for LogServerSettings
impl !UnwindSafe for LogServerSettings
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