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 occured while constructing the class.
ArgError
Invalid arguments were given to the constructor.
Trait Implementations
sourceimpl<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>,
sourceimpl<T> From<T> for ConstructorResult<T>
impl<T> From<T> for ConstructorResult<T>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more