pub enum RequestHandle {
Done,
Pending(CancelHook),
}Expand description
Request lifetime handle returned from FileSource::request.
Describes whether a FileSource::request is complete or cancellable.
Variants§
Done
The request completed synchronously; no cancellation hook is needed.
Pending(CancelHook)
The request is in flight; run the hook if MapLibre Native cancels it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RequestHandle
impl !UnwindSafe for RequestHandle
impl Freeze for RequestHandle
impl Send for RequestHandle
impl Sync for RequestHandle
impl Unpin for RequestHandle
impl UnsafeUnpin for RequestHandle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more