pub type StreamWrapper = php_stream_wrapper;
Expand description
Wrapper for PHP streams
Aliased Type§
#[repr(C)]pub 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
impl StreamWrapper
Sourcepub fn register_volatile(self, name: &str) -> Result<Self, Error>
pub fn register_volatile(self, name: &str) -> Result<Self, Error>
Register volatile stream wrapper for name
§Errors
Error::StreamWrapperRegistrationFailure
- If the stream wrapper could not be registered
Sourcepub fn unregister_volatile(name: &str) -> Result<(), Error>
pub fn unregister_volatile(name: &str) -> Result<(), Error>
Unregister volatile stream wrapper by name
§Errors
Error::StreamWrapperUnregistrationFailure
- If the stream wrapper could not be unregistered
Sourcepub fn wops(&self) -> &php_stream_wrapper_ops
pub fn wops(&self) -> &php_stream_wrapper_ops
Get the operations the stream wrapper can perform
Sourcepub fn wops_mut(&mut self) -> &mut php_stream_wrapper_ops
pub fn wops_mut(&mut self) -> &mut php_stream_wrapper_ops
Get the mutable operations the stream can perform