pub struct NetworkRequest { /* private fields */ }Implementations§
Source§impl NetworkRequest
Auto-generated by derive_getters::Getters.
impl NetworkRequest
Auto-generated by derive_getters::Getters.
Source§impl NetworkRequest
impl NetworkRequest
pub fn new_get(server: Text, route: Text) -> Self
pub fn new_post( server: Text, route: Text, json: Option<Vec<(Text, RuntimeValue)>>, ) -> Self
pub fn into_specific(self) -> InnerNetworkRequest
Trait Implementations§
Source§impl Clone for NetworkRequest
impl Clone for NetworkRequest
Source§fn clone(&self) -> NetworkRequest
fn clone(&self) -> NetworkRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkRequest
impl Debug for NetworkRequest
Source§impl<RuntimeT> MachineConstruction<NetworkRequest, RuntimeT> for NetworkRequestwhere
RuntimeT: SpecializeFrom<<NetworkRequest as SpecificTaskRequest>::MainOutput> + Send,
<NetworkRequest as SpecificTaskRequest>::MainOutput: Clone,
impl<RuntimeT> MachineConstruction<NetworkRequest, RuntimeT> for NetworkRequestwhere
RuntimeT: SpecializeFrom<<NetworkRequest as SpecificTaskRequest>::MainOutput> + Send,
<NetworkRequest as SpecificTaskRequest>::MainOutput: Clone,
fn query_cow<R: ClarifiedCerrMerging + 'static + Send>( self, closure: impl for<'a> FnOnce(Cow<'a, RuntimeT>) -> Machine<R> + 'static + Send, ) -> Machine<R>
fn query<R: ClarifiedCerrMerging + 'static + Send>(
self,
closure: impl FnOnce(RuntimeT) -> Machine<R> + 'static + Send,
) -> Machine<R>where
RuntimeT: Clone,
fn query_ref<R: ClarifiedCerrMerging + 'static + Send>(
self,
closure: impl for<'a> FnOnce(&'a RuntimeT) -> Machine<R> + 'static + Send,
) -> Machine<R>where
RuntimeT: Clone + CheapBorrowFromAny,
Source§impl PartialEq for NetworkRequest
impl PartialEq for NetworkRequest
Source§fn eq(&self, other: &NetworkRequest) -> bool
fn eq(&self, other: &NetworkRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NetworkRequest
impl PartialOrd for NetworkRequest
Source§impl SpecificTaskRequest for NetworkRequest
impl SpecificTaskRequest for NetworkRequest
type MainOutput = Result<NetworkResponse, cerr>
impl StructuralPartialEq for NetworkRequest
Auto Trait Implementations§
impl Freeze for NetworkRequest
impl RefUnwindSafe for NetworkRequest
impl Send for NetworkRequest
impl Sync for NetworkRequest
impl Unpin for NetworkRequest
impl UnsafeUnpin for NetworkRequest
impl UnwindSafe for NetworkRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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