pub struct Stub { /* private fields */ }
Expand description
A Durable Object stub is a client object used to send requests to a remote Durable Object.
Implementations§
Source§impl Stub
impl Stub
Sourcepub async fn fetch_with_request(&self, req: Request) -> Result<Response>
pub async fn fetch_with_request(&self, req: Request) -> Result<Response>
Send an internal Request to the Durable Object to which the stub points.
Sourcepub async fn fetch_with_str(&self, url: &str) -> Result<Response>
pub async fn fetch_with_str(&self, url: &str) -> Result<Response>
Construct a Request from a URL to the Durable Object to which the stub points.
pub fn into_rpc<T: JsCast>(self) -> T
Trait Implementations§
Auto Trait Implementations§
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