Struct gio::IOExtensionPoint
source · pub struct IOExtensionPoint(/* private fields */);
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: impl Into<GString>) -> IOExtensionPointBuilder
pub fn builder(name: impl Into<GString>) -> IOExtensionPointBuilder
Create a new builder for an extension point.
pub fn lookup(name: impl IntoGStr) -> Option<Self>
pub fn extensions(&self) -> Vec<IOExtension>
pub fn extension_by_name(&self, name: impl IntoGStr) -> Option<IOExtension>
pub fn required_type(&self) -> Type
pub fn implement( extension_point_name: impl IntoGStr, type_: Type, extension_name: impl IntoGStr, 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 FromGlibPtrNone<*mut _GIOExtensionPoint> for IOExtensionPoint
impl FromGlibPtrNone<*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 for IOExtensionPoint
impl PartialEq for IOExtensionPoint
source§fn 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 ==
.source§impl<'a> ToGlibPtr<'a, *mut _GIOExtensionPoint> for &'a IOExtensionPoint
impl<'a> ToGlibPtr<'a, *mut _GIOExtensionPoint> for &'a IOExtensionPoint
type Storage = PhantomData<&'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
impl Copy for IOExtensionPoint
impl Eq for IOExtensionPoint
impl StructuralPartialEq for IOExtensionPoint
Auto Trait Implementations§
impl Freeze for IOExtensionPoint
impl RefUnwindSafe for IOExtensionPoint
impl !Send for IOExtensionPoint
impl !Sync for IOExtensionPoint
impl Unpin for IOExtensionPoint
impl UnwindSafe for IOExtensionPoint
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