Struct ic_websocket_cdk::WsHandlers
source · pub struct WsHandlers {
pub on_open: Option<fn(_: OnOpenCallbackArgs)>,
pub on_message: Option<fn(_: OnMessageCallbackArgs)>,
pub on_close: Option<fn(_: OnCloseCallbackArgs)>,
}Expand description
Handlers initialized by the canister and triggered by the CDK.
Fields§
§on_open: Option<fn(_: OnOpenCallbackArgs)>§on_message: Option<fn(_: OnMessageCallbackArgs)>§on_close: Option<fn(_: OnCloseCallbackArgs)>Trait Implementations§
source§impl Clone for WsHandlers
impl Clone for WsHandlers
source§fn clone(&self) -> WsHandlers
fn clone(&self) -> WsHandlers
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for WsHandlers
impl Default for WsHandlers
source§fn default() -> WsHandlers
fn default() -> WsHandlers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for WsHandlers
impl Send for WsHandlers
impl Sync for WsHandlers
impl Unpin for WsHandlers
impl UnwindSafe for WsHandlers
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