Struct deno_websocket::op_ws_create
source · pub struct op_ws_create<WP> { /* private fields */ }
Implementations§
source§impl<WP: WebSocketPermissions + 'static> op_ws_create<WP>
impl<WP: WebSocketPermissions + 'static> op_ws_create<WP>
pub const fn name() -> &'static str
pub const fn decl() -> OpDecl
👎Deprecated: Use the const op::DECL instead
pub async fn call(
state: Rc<RefCell<OpState>>,
api_name: String,
url: String,
protocols: String,
cancel_handle: Option<ResourceId>,
headers: Option<Vec<(ByteString, ByteString)>>
) -> Result<CreateResponse, AnyError>where
WP: WebSocketPermissions + 'static,
Trait Implementations§
Auto Trait Implementations§
impl<WP> RefUnwindSafe for op_ws_create<WP>where
WP: RefUnwindSafe,
impl<WP> Send for op_ws_create<WP>where
WP: Send,
impl<WP> Sync for op_ws_create<WP>where
WP: Sync,
impl<WP> Unpin for op_ws_create<WP>where
WP: Unpin,
impl<WP> UnwindSafe for op_ws_create<WP>where
WP: UnwindSafe,
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