Struct sieve::Runtime

source ·
pub struct Runtime { /* private fields */ }

Implementations§

source§

impl Runtime

source

pub fn filter<'z: 'x, 'x>(&'z self, raw_message: &'x [u8]) -> Context<'x>

source

pub fn filter_parsed<'z: 'x, 'x>(&'z self, message: Message<'x>) -> Context<'x>

source§

impl Runtime

source

pub fn new() -> Self

source

pub fn set_cpu_limit(&mut self, size: usize)

source

pub fn with_cpu_limit(self, size: usize) -> Self

source

pub fn set_max_nested_includes(&mut self, size: usize)

source

pub fn with_max_nested_includes(self, size: usize) -> Self

source

pub fn set_max_redirects(&mut self, size: usize)

source

pub fn with_max_redirects(self, size: usize) -> Self

source

pub fn set_max_out_messages(&mut self, size: usize)

source

pub fn with_max_out_messages(self, size: usize) -> Self

source

pub fn set_max_received_headers(&mut self, size: usize)

source

pub fn with_max_received_headers(self, size: usize) -> Self

source

pub fn set_max_variable_size(&mut self, size: usize)

source

pub fn with_max_variable_size(self, size: usize) -> Self

source

pub fn set_max_header_size(&mut self, size: usize)

source

pub fn with_max_header_size(self, size: usize) -> Self

source

pub fn set_default_vacation_expiry(&mut self, expiry: u64)

source

pub fn with_default_vacation_expiry(self, expiry: u64) -> Self

source

pub fn set_default_duplicate_expiry(&mut self, expiry: u64)

source

pub fn with_default_duplicate_expiry(self, expiry: u64) -> Self

source

pub fn set_capability(&mut self, capability: impl Into<Capability>)

source

pub fn with_capability(self, capability: impl Into<Capability>) -> Self

source

pub fn unset_capability(&mut self, capability: impl Into<Capability>)

source

pub fn without_capability(self, capability: impl Into<Capability>) -> Self

source

pub fn without_capabilities( self, capabilities: impl IntoIterator<Item = impl Into<Capability>> ) -> Self

source

pub fn set_protected_header( &mut self, header_name: impl Into<Cow<'static, str>> )

source

pub fn with_protected_header( self, header_name: impl Into<Cow<'static, str>> ) -> Self

source

pub fn with_protected_headers( self, header_names: impl IntoIterator<Item = impl Into<Cow<'static, str>>> ) -> Self

source

pub fn set_env_variable( &mut self, name: impl Into<Cow<'static, str>>, value: impl Into<Variable> )

source

pub fn with_env_variable( self, name: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>> ) -> Self

source

pub fn set_medatata( &mut self, name: impl Into<Metadata<String>>, value: impl Into<Cow<'static, str>> )

source

pub fn with_metadata( self, name: impl Into<Metadata<String>>, value: impl Into<Cow<'static, str>> ) -> Self

source

pub fn set_valid_notification_uri(&mut self, uri: impl Into<Cow<'static, str>>)

source

pub fn with_valid_notification_uri( self, uri: impl Into<Cow<'static, str>> ) -> Self

source

pub fn with_valid_notification_uris( self, uris: impl IntoIterator<Item = impl Into<Cow<'static, str>>> ) -> Self

source

pub fn set_valid_ext_list(&mut self, name: impl Into<Cow<'static, str>>)

source

pub fn with_valid_ext_list(self, name: impl Into<Cow<'static, str>>) -> Self

source

pub fn set_vacation_use_orig_rcpt(&mut self, value: bool)

source

pub fn with_valid_ext_lists( self, lists: impl IntoIterator<Item = impl Into<Cow<'static, str>>> ) -> Self

source

pub fn with_vacation_use_orig_rcpt(self, value: bool) -> Self

source

pub fn set_vacation_default_subject( &mut self, value: impl Into<Cow<'static, str>> )

source

pub fn with_vacation_default_subject( self, value: impl Into<Cow<'static, str>> ) -> Self

source

pub fn set_vacation_subject_prefix( &mut self, value: impl Into<Cow<'static, str>> )

source

pub fn with_vacation_subject_prefix( self, value: impl Into<Cow<'static, str>> ) -> Self

source

pub fn set_local_hostname(&mut self, value: impl Into<Cow<'static, str>>)

source

pub fn with_local_hostname(self, value: impl Into<Cow<'static, str>>) -> Self

source

pub fn with_functions(self, fnc_map: &mut FunctionMap) -> Self

source

pub fn set_functions(&mut self, fnc_map: &mut FunctionMap)

Trait Implementations§

source§

impl Clone for Runtime

source§

fn clone(&self) -> Runtime

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Runtime

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Runtime

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.