pub struct ProxyEvents {
pub destroy: Option<Box<dyn FnMut() + Send>>,
pub bound: Option<Box<dyn FnMut(Id) + Send>>,
pub removed: Option<Box<dyn FnMut() + Send>>,
pub done: Option<Box<dyn FnMut(u32) + Send>>,
pub error: Option<Box<dyn FnMut(u32, u32, &str) + Send>>,
pub bound_props: Option<Box<dyn FnMut(u32, &Properties) + Send>>,
}Expand description
Events that might be emitted by a proxy.
Fields§
§destroy: Option<Box<dyn FnMut() + Send>>The proxy is about to be destroyed (either because it went away, or because we are disconnecting).
bound: Option<Box<dyn FnMut(Id) + Send>>The proxy was bound to.
removed: Option<Box<dyn FnMut() + Send>>The proxy was removed (either on the server-side, or we are disconnecting).
done: Option<Box<dyn FnMut(u32) + Send>>An asynchronous operation on the proxy was completed.
error: Option<Box<dyn FnMut(u32, u32, &str) + Send>>An error occured on the object.
bound_props: Option<Box<dyn FnMut(u32, &Properties) + Send>>The proxy was bound to (supercedes Self::bound).
Trait Implementations§
Source§impl Default for ProxyEvents
impl Default for ProxyEvents
Source§fn default() -> ProxyEvents
fn default() -> ProxyEvents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProxyEvents
impl !RefUnwindSafe for ProxyEvents
impl Send for ProxyEvents
impl !Sync for ProxyEvents
impl Unpin for ProxyEvents
impl !UnwindSafe for ProxyEvents
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