pub struct SystemCallbacks {
pub preshutdown: Option<Box<dyn Fn() -> Result<(), ActorError> + Send + Sync>>,
pub postshutdown: Option<Box<dyn Fn() -> Result<(), ActorError> + Send + Sync>>,
}Fields§
§preshutdown: Option<Box<dyn Fn() -> Result<(), ActorError> + Send + Sync>>§postshutdown: Option<Box<dyn Fn() -> Result<(), ActorError> + Send + Sync>>Trait Implementations§
Source§impl Default for SystemCallbacks
impl Default for SystemCallbacks
Source§fn default() -> SystemCallbacks
fn default() -> SystemCallbacks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemCallbacks
impl !RefUnwindSafe for SystemCallbacks
impl Send for SystemCallbacks
impl Sync for SystemCallbacks
impl Unpin for SystemCallbacks
impl !UnwindSafe for SystemCallbacks
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