Enum ext_php_rs::class::ConstructorResult
source · pub enum ConstructorResult<T> {
Ok(T),
Exception(PhpException),
ArgError,
}
Expand description
Result returned from a constructor of a class.
Variants§
Ok(T)
Successfully constructed the class, contains the new class object.
Exception(PhpException)
An exception occurred while constructing the class.
ArgError
Invalid arguments were given to the constructor.
Trait Implementations§
source§impl<T, E> From<Result<T, E>> for ConstructorResult<T>where
E: Into<PhpException>,
impl<T, E> From<Result<T, E>> for ConstructorResult<T>where
E: Into<PhpException>,
Auto Trait Implementations§
impl<T> RefUnwindSafe for ConstructorResult<T>where
T: RefUnwindSafe,
impl<T> !Send for ConstructorResult<T>
impl<T> !Sync for ConstructorResult<T>
impl<T> Unpin for ConstructorResult<T>where
T: Unpin,
impl<T> UnwindSafe for ConstructorResult<T>where
T: 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