#[repr(C)]pub struct lyplg_ext_record {
pub module: *const c_char,
pub revision: *const c_char,
pub name: *const c_char,
pub plugin: lyplg_ext,
}Fields§
§module: *const c_char< name of the module where the extension is defined
revision: *const c_char< optional module revision - if not specified, the plugin applies to any revision, which is not an optimal approach due to a possible future revisions of the module. Instead, there should be defined multiple items in the plugins list, each with the different revision, but all with the same pointer to the plugin functions. The only valid use case for the NULL revision is the case the module has no revision.
name: *const c_char< YANG name of the extension
plugin: lyplg_ext< data to utilize plugin implementation
Trait Implementations§
Source§impl Clone for lyplg_ext_record
impl Clone for lyplg_ext_record
Source§fn clone(&self) -> lyplg_ext_record
fn clone(&self) -> lyplg_ext_record
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 moreimpl Copy for lyplg_ext_record
Source§impl Debug for lyplg_ext_record
impl Debug for lyplg_ext_record
Auto Trait Implementations§
impl !Send for lyplg_ext_record
impl !Sync for lyplg_ext_record
impl Freeze for lyplg_ext_record
impl RefUnwindSafe for lyplg_ext_record
impl Unpin for lyplg_ext_record
impl UnsafeUnpin for lyplg_ext_record
impl UnwindSafe for lyplg_ext_record
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