Struct deno_io::ReadOnlyResource
source · pub struct ReadOnlyResource<S> { /* private fields */ }
Implementations§
source§impl<S> ReadOnlyResource<S>where
S: AsyncRead + Unpin + 'static,
impl<S> ReadOnlyResource<S>where S: AsyncRead + Unpin + 'static,
pub fn borrow_mut(self: &Rc<Self>) -> AsyncMutFuture<S>
pub fn cancel_handle(self: &Rc<Self>) -> RcRef<CancelHandle>
pub fn cancel_read_ops(&self)
pub fn into_inner(self) -> S
Trait Implementations§
source§impl<S: Debug> Debug for ReadOnlyResource<S>
impl<S: Debug> Debug for ReadOnlyResource<S>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for ReadOnlyResource<S>
impl<S> !Send for ReadOnlyResource<S>
impl<S> !Sync for ReadOnlyResource<S>
impl<S> !Unpin for ReadOnlyResource<S>
impl<S> !UnwindSafe for ReadOnlyResource<S>
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