Struct mailpot::message_filters::PostRightsCheck
source · pub struct PostRightsCheck;
Expand description
Check that submitter can post to list, for now it accepts everything.
Trait Implementations§
source§impl PostFilter for PostRightsCheck
impl PostFilter for PostRightsCheck
source§fn feed<'p, 'list>(
self: Box<Self>,
post: &'p mut PostEntry,
ctx: &'p mut ListContext<'list>
) -> Result<(&'p mut PostEntry, &'p mut ListContext<'list>), ()>
fn feed<'p, 'list>( self: Box<Self>, post: &'p mut PostEntry, ctx: &'p mut ListContext<'list> ) -> Result<(&'p mut PostEntry, &'p mut ListContext<'list>), ()>
Feed post into the filter. Perform modifications to
post
and / or
ctx
, and return them with Result::Ok
unless you want to the
processing to stop and return an Result::Err
.Auto Trait Implementations§
impl RefUnwindSafe for PostRightsCheck
impl Send for PostRightsCheck
impl Sync for PostRightsCheck
impl Unpin for PostRightsCheck
impl UnwindSafe for PostRightsCheck
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