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
sourceimpl 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
sourceimpl Clone for IOExtensionPoint
impl Clone for IOExtensionPoint
sourcefn clone(&self) -> IOExtensionPoint
fn clone(&self) -> IOExtensionPoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IOExtensionPoint
impl Debug for IOExtensionPoint
sourceimpl Display for IOExtensionPoint
impl Display for IOExtensionPoint
sourceimpl FromGlibPtrNone<*mut *mut _GIOExtensionPoint> for IOExtensionPoint
impl FromGlibPtrNone<*mut *mut _GIOExtensionPoint> for IOExtensionPoint
sourceunsafe fn from_glib_none(ptr: *mut GIOExtensionPoint) -> Self
unsafe fn from_glib_none(ptr: *mut GIOExtensionPoint) -> Self
Safety Read more
sourceimpl PartialEq<IOExtensionPoint> for IOExtensionPoint
impl PartialEq<IOExtensionPoint> for IOExtensionPoint
sourcefn eq(&self, other: &IOExtensionPoint) -> bool
fn eq(&self, other: &IOExtensionPoint) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<'a> ToGlibPtr<'a, *mut *mut _GIOExtensionPoint> for &'a IOExtensionPoint
impl<'a> ToGlibPtr<'a, *mut *mut _GIOExtensionPoint> for &'a IOExtensionPoint
type Storage = &'a IOExtensionPoint
sourcefn 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
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourcefn to_glib_full(&self) -> P
fn to_glib_full(&self) -> P
Transfer: full. Read more
impl Copy for IOExtensionPoint
impl Eq for IOExtensionPoint
impl StructuralEq for IOExtensionPoint
impl StructuralPartialEq for IOExtensionPoint
Auto Trait Implementations
impl RefUnwindSafe for IOExtensionPoint
impl !Send for IOExtensionPoint
impl !Sync for IOExtensionPoint
impl Unpin for IOExtensionPoint
impl UnwindSafe for IOExtensionPoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more