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.
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