pub(crate) struct ExportFilters {
pub(crate) by_channel: HashMap<u8, ChannelFilterSettings>,
}Expand description
Filters asked for by an export request, per channel.
Fields§
§by_channel: HashMap<u8, ChannelFilterSettings>Active settings of the requested channels that have any filter on.
Implementations§
Source§impl ExportFilters
impl ExportFilters
Sourcepub(crate) fn from_request(req: &ExportRequest) -> Option<Self>
pub(crate) fn from_request(req: &ExportRequest) -> Option<Self>
Reads the request’s filters for its channels.
§Returns
None when no requested channel has a filter on (the export is then exactly
as without filters). Keys that are not channel numbers, entries that are not
objects and switches that are not true are ignored.
Sourcepub(crate) fn for_channel(&self, channel: u8) -> Option<&ChannelFilterSettings>
pub(crate) fn for_channel(&self, channel: u8) -> Option<&ChannelFilterSettings>
The channel’s settings when it has any filter on.
Trait Implementations§
Source§impl Clone for ExportFilters
impl Clone for ExportFilters
Source§fn clone(&self) -> ExportFilters
fn clone(&self) -> ExportFilters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExportFilters
impl Debug for ExportFilters
Source§impl Default for ExportFilters
impl Default for ExportFilters
Source§fn default() -> ExportFilters
fn default() -> ExportFilters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExportFilters
impl RefUnwindSafe for ExportFilters
impl Send for ExportFilters
impl Sync for ExportFilters
impl Unpin for ExportFilters
impl UnsafeUnpin for ExportFilters
impl UnwindSafe for ExportFilters
Blanket Implementations§
impl<T> Allocation for T
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