pub struct Target {
pub types: Vec<String>,
pub accept: Rc<dyn Fn(&Location) -> Operation>,
pub receive: Rc<dyn Fn(Drop) -> bool>,
}Expand description
Policy is consulted during hover AND again at drop. None rejects this location.
receive returns whether the owned data was accepted. Do not delete a source based on
asynchronous work started here: external transfers currently advertise Copy only.
Fields§
§types: Vec<String>§accept: Rc<dyn Fn(&Location) -> Operation>§receive: Rc<dyn Fn(Drop) -> bool>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Target
impl !Send for Target
impl !Sync for Target
impl !UnwindSafe for Target
impl Freeze for Target
impl Unpin for Target
impl UnsafeUnpin for Target
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