Struct tonari_actor::SystemCallbacks
source · [−]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
sourceimpl Default for SystemCallbacks
impl Default for SystemCallbacks
sourcefn default() -> SystemCallbacks
fn default() -> SystemCallbacks
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SystemCallbacks
impl Send for SystemCallbacks
impl Sync for SystemCallbacks
impl Unpin for SystemCallbacks
impl !UnwindSafe for SystemCallbacks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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