Type Alias ext_php_rs::zend::StreamWrapper

source ·
pub type StreamWrapper = php_stream_wrapper;

Aliased Type§

struct StreamWrapper {
    pub wops: *const _php_stream_wrapper_ops,
    pub abstract_: *mut c_void,
    pub is_url: i32,
}

Fields§

§wops: *const _php_stream_wrapper_ops§abstract_: *mut c_void§is_url: i32

Implementations§

source§

impl StreamWrapper

source

pub fn get(name: &str) -> Option<&Self>

source

pub fn get_mut(name: &str) -> Option<&mut Self>

source

pub fn register(self, name: &str) -> Result<Self, Error>

source

pub fn register_volatile(self, name: &str) -> Result<Self, Error>

source

pub fn unregister(name: &str) -> Result<(), Error>

source

pub fn unregister_volatile(name: &str) -> Result<(), Error>

source

pub fn wops(&self) -> &php_stream_wrapper_ops

source

pub fn wops_mut(&mut self) -> &mut php_stream_wrapper_ops