#[repr(i32)]pub enum PdError {
Ok = 0,
Init = -1,
Handler = -2,
NotFound = -3,
}Expand description
Return codes for plugin actor lifecycle functions.
Plugin-side functions return PdError::Ok (0) on success. Any non-zero
value is treated as an error and mapped to the corresponding
palladium_actor::ActorError variant by the engine.
Variants§
Ok = 0
Operation succeeded.
Init = -1
Actor failed to initialize (on_start returned an error).
Handler = -2
Message handler returned an error (on_message failed).
NotFound = -3
Requested actor type or resource was not found.
Implementations§
Trait Implementations§
impl Copy for PdError
impl Eq for PdError
impl StructuralPartialEq for PdError
Auto Trait Implementations§
impl Freeze for PdError
impl RefUnwindSafe for PdError
impl Send for PdError
impl Sync for PdError
impl Unpin for PdError
impl UnsafeUnpin for PdError
impl UnwindSafe for PdError
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