pub struct Subroutine(/* private fields */);Expand description
A wrapper around a VCL_SUB pointer representing a VCL subroutine.
Subroutines can be passed as arguments to VMOD functions and invoked via
crate::vcl::Ctx::call_sub and crate::vcl::Ctx::check_call_sub.
Implementations§
Trait Implementations§
Source§impl Clone for Subroutine
impl Clone for Subroutine
Source§fn clone(&self) -> Subroutine
fn clone(&self) -> Subroutine
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 Subroutine
Source§impl Debug for Subroutine
impl Debug for Subroutine
Source§impl From<VCL_SUB> for Subroutine
impl From<VCL_SUB> for Subroutine
Auto Trait Implementations§
impl !Send for Subroutine
impl !Sync for Subroutine
impl Freeze for Subroutine
impl RefUnwindSafe for Subroutine
impl Unpin for Subroutine
impl UnsafeUnpin for Subroutine
impl UnwindSafe for Subroutine
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