Struct gio::IOExtensionPoint
source · pub struct IOExtensionPoint(_);
Expand description
An extension point provides a mechanism to extend the functionality of a library or application. Each extension point is identified by a name, and it may optionally require that any implementation must be of a certain type.
Implementations§
source§impl IOExtensionPoint
impl IOExtensionPoint
sourcepub fn builder(name: &str) -> IOExtensionPointBuilder<'_>
pub fn builder(name: &str) -> IOExtensionPointBuilder<'_>
Create a new builder for an extension point.
pub fn lookup(name: &str) -> Option<Self>
pub fn extensions(&self) -> Vec<IOExtension>
pub fn extension_by_name(&self, name: &str) -> Option<IOExtension>
pub fn required_type(&self) -> Type
pub fn implement(
extension_point_name: &str,
type_: Type,
extension_name: &str,
priority: i32
) -> Option<IOExtension>
Trait Implementations§
source§impl Clone for IOExtensionPoint
impl Clone for IOExtensionPoint
source§fn clone(&self) -> IOExtensionPoint
fn clone(&self) -> IOExtensionPoint
Returns a copy 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 Debug for IOExtensionPoint
impl Debug for IOExtensionPoint
source§impl Display for IOExtensionPoint
impl Display for IOExtensionPoint
source§impl FromGlibPtrNone<*mut *mut _GIOExtensionPoint> for IOExtensionPoint
impl FromGlibPtrNone<*mut *mut _GIOExtensionPoint> for IOExtensionPoint
source§unsafe fn from_glib_none(ptr: *mut GIOExtensionPoint) -> Self
unsafe fn from_glib_none(ptr: *mut GIOExtensionPoint) -> Self
Safety Read more
source§impl PartialEq<IOExtensionPoint> for IOExtensionPoint
impl PartialEq<IOExtensionPoint> for IOExtensionPoint
source§fn eq(&self, other: &IOExtensionPoint) -> bool
fn eq(&self, other: &IOExtensionPoint) -> bool
source§impl<'a> ToGlibPtr<'a, *mut *mut _GIOExtensionPoint> for &'a IOExtensionPoint
impl<'a> ToGlibPtr<'a, *mut *mut _GIOExtensionPoint> for &'a IOExtensionPoint
type Storage = &'a IOExtensionPoint
source§fn to_glib_none(
&self
) -> Stash<'a, *mut GIOExtensionPoint, &'a IOExtensionPoint>
fn to_glib_none(
&self
) -> Stash<'a, *mut GIOExtensionPoint, &'a IOExtensionPoint>
Transfer: none. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§fn to_glib_full(&self) -> P
fn to_glib_full(&self) -> P
Transfer: full. Read more