pub struct SchemaExtInstance<'a> { /* private fields */ }Expand description
YANG extension instance.
Implementations§
Source§impl<'a> SchemaExtInstance<'a>
impl<'a> SchemaExtInstance<'a>
Sourcepub fn as_raw(&self) -> *mut lysc_ext_instance
pub fn as_raw(&self) -> *mut lysc_ext_instance
Returns a mutable raw pointer to the underlying C library representation of the extension instance.
Sourcepub fn new_path(
&self,
path: &str,
value: Option<&str>,
output: bool,
) -> Result<Option<DataTree<'a>>, Error>
pub fn new_path( &self, path: &str, value: Option<&str>, output: bool, ) -> Result<Option<DataTree<'a>>, Error>
Create a new node in the extension instance based on a path.
If path points to a list key and the list instance does not exist, the key value from the predicate is used and value is ignored. Also, if a leaf-list is being created and both a predicate is defined in path and value is set, the predicate is preferred.
For key-less lists and state leaf-lists, positional predicates can be used. If no preciate is used for these nodes, they are always created.
The output parameter can be used to change the behavior to ignore RPC/action input schema nodes and use only output ones.
Returns the last created node (if any).
Trait Implementations§
Source§impl<'a> Binding<'a> for SchemaExtInstance<'a>
impl<'a> Binding<'a> for SchemaExtInstance<'a>
Source§impl<'a> Clone for SchemaExtInstance<'a>
impl<'a> Clone for SchemaExtInstance<'a>
Source§fn clone(&self) -> SchemaExtInstance<'a>
fn clone(&self) -> SchemaExtInstance<'a>
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 moreSource§impl<'a> Debug for SchemaExtInstance<'a>
impl<'a> Debug for SchemaExtInstance<'a>
impl Send for SchemaExtInstance<'_>
impl Sync for SchemaExtInstance<'_>
Auto Trait Implementations§
impl<'a> Freeze for SchemaExtInstance<'a>
impl<'a> RefUnwindSafe for SchemaExtInstance<'a>
impl<'a> Unpin for SchemaExtInstance<'a>
impl<'a> UnwindSafe for SchemaExtInstance<'a>
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