pub struct BrowseFilter { /* private fields */ }
Expand description
Simple filter for the Browser. All discovered nodes will be recursively browsed using the stored configuration.
Implementations§
Source§impl BrowseFilter
impl BrowseFilter
Sourcepub fn new(
direction: BrowseDirection,
reference_type_id: impl Into<NodeId>,
include_subtypes: bool,
) -> Self
pub fn new( direction: BrowseDirection, reference_type_id: impl Into<NodeId>, include_subtypes: bool, ) -> Self
Create a new browse filter for browsing references of
reference_type_id
(optionally including subtypes) in the
given direction
.
Sourcepub fn new_description_from_node(&self, node_id: NodeId) -> BrowseDescription
pub fn new_description_from_node(&self, node_id: NodeId) -> BrowseDescription
Create a new browse description from this filter and a node ID to browse.
Sourcepub fn new_hierarchical() -> Self
pub fn new_hierarchical() -> Self
Create a new browse filter for browsing hierarchical references.
Sourcepub fn node_class_mask(self, mask: NodeClassMask) -> Self
pub fn node_class_mask(self, mask: NodeClassMask) -> Self
Set the node class mask, the filter for allowed node classes
in the returned references. Defaults to all
.
Sourcepub fn result_mask(self, mask: BrowseResultMaskFlags) -> Self
pub fn result_mask(self, mask: BrowseResultMaskFlags) -> Self
Set the result mask, indicating which values should be returned
for each reference. Defaults to all
.
Trait Implementations§
Source§impl BrowserPolicy for BrowseFilter
impl BrowserPolicy for BrowseFilter
Source§fn get_next(&self, results: &BrowseResultItem) -> Vec<BrowseDescription>
fn get_next(&self, results: &BrowseResultItem) -> Vec<BrowseDescription>
Given a parent node, and a list of references from that node,
return a list of nodes to browse next.
Source§impl Clone for BrowseFilter
impl Clone for BrowseFilter
Source§fn clone(&self) -> BrowseFilter
fn clone(&self) -> BrowseFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BrowseFilter
impl RefUnwindSafe for BrowseFilter
impl Send for BrowseFilter
impl Sync for BrowseFilter
impl Unpin for BrowseFilter
impl UnwindSafe for BrowseFilter
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