Struct deno_fetch::op_fetch
source · pub struct op_fetch<FP> { /* private fields */ }
Implementations§
source§impl<FP: FetchPermissions + 'static> op_fetch<FP>
impl<FP: FetchPermissions + 'static> op_fetch<FP>
pub const fn name() -> &'static str
pub const fn decl() -> OpDecl
👎Deprecated: Use the const op::DECL instead
pub fn call(
state: &mut OpState,
method: ByteString,
url: String,
headers: Vec<(ByteString, ByteString)>,
client_rid: Option<u32>,
has_body: bool,
data: Option<JsBuffer>,
resource: Option<ResourceId>
) -> Result<FetchReturn, AnyError>where
FP: FetchPermissions + 'static,
Trait Implementations§
Auto Trait Implementations§
impl<FP> RefUnwindSafe for op_fetch<FP>where
FP: RefUnwindSafe,
impl<FP> Send for op_fetch<FP>where
FP: Send,
impl<FP> Sync for op_fetch<FP>where
FP: Sync,
impl<FP> Unpin for op_fetch<FP>where
FP: Unpin,
impl<FP> UnwindSafe for op_fetch<FP>where
FP: 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