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,
) -> BrowseFilter
pub fn new( direction: BrowseDirection, reference_type_id: impl Into<NodeId>, include_subtypes: bool, ) -> BrowseFilter
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() -> BrowseFilter
pub fn new_hierarchical() -> BrowseFilter
Create a new browse filter for browsing hierarchical references.
Sourcepub fn node_class_mask(self, mask: NodeClassMask) -> BrowseFilter
pub fn node_class_mask(self, mask: NodeClassMask) -> BrowseFilter
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) -> BrowseFilter
pub fn result_mask(self, mask: BrowseResultMaskFlags) -> BrowseFilter
Set the result mask, indicating which values should be returned
for each reference. Defaults to all.
Sourcepub fn max_depth(self, depth: usize) -> BrowseFilter
pub fn max_depth(self, depth: usize) -> BrowseFilter
Set the maximum browse depth. If this is 1 only the root nodes will be browsed, if it is 0, there is no upper limit.
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 UnsafeUnpin 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