pub struct Proxy<P> { /* private fields */ }Expand description
A proxy object for Plugin
Use crate::output_plugin_proxy instead of using this directly.
Implementations§
Source§impl<P> Proxy<P>where
P: Plugin,
impl<P> Proxy<P>where
P: Plugin,
pub const fn new() -> Self
pub unsafe fn register(&self, def: *mut flb_plugin_proxy_def) -> c_int
pub unsafe fn unregister(&self, _def: *mut flb_plugin_proxy_def) -> c_int
pub unsafe fn init(&self, plugin: *mut flbgo_output_plugin) -> c_int
pub unsafe fn flush( &self, ctx: *mut c_void, data: *const u8, len: c_int, tag: *const i8, ) -> c_int
pub unsafe fn exit(&self, ctx: *mut c_void) -> c_int
Auto Trait Implementations§
impl<P> Freeze for Proxy<P>
impl<P> RefUnwindSafe for Proxy<P>where
P: RefUnwindSafe,
impl<P> Send for Proxy<P>where
P: Send,
impl<P> Sync for Proxy<P>where
P: Sync,
impl<P> Unpin for Proxy<P>where
P: Unpin,
impl<P> UnwindSafe for Proxy<P>where
P: UnwindSafe,
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