pub enum NetworkCommand {
Show 13 variants
AddDataCollector(AddDataCollector),
AddIntercept(AddIntercept),
ContinueRequest(ContinueRequest),
ContinueResponse(ContinueResponse),
ContinueWithAuth(ContinueWithAuth),
DisownData(DisownData),
FailRequest(FailRequest),
GetData(GetData),
ProvideResponse(ProvideResponse),
RemoveDataCollector(RemoveDataCollector),
RemoveIntercept(RemoveIntercept),
SetCacheBehavior(SetCacheBehavior),
SetExtraHeaders(SetExtraHeaders),
}Variants§
AddDataCollector(AddDataCollector)
AddIntercept(AddIntercept)
ContinueRequest(ContinueRequest)
ContinueResponse(ContinueResponse)
ContinueWithAuth(ContinueWithAuth)
DisownData(DisownData)
FailRequest(FailRequest)
GetData(GetData)
ProvideResponse(ProvideResponse)
RemoveDataCollector(RemoveDataCollector)
RemoveIntercept(RemoveIntercept)
SetCacheBehavior(SetCacheBehavior)
SetExtraHeaders(SetExtraHeaders)
Implementations§
Source§impl NetworkCommand
impl NetworkCommand
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for NetworkCommand
impl Clone for NetworkCommand
Source§fn clone(&self) -> NetworkCommand
fn clone(&self) -> NetworkCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 NetworkCommand
impl Debug for NetworkCommand
Source§impl<'de> Deserialize<'de> for NetworkCommand
impl<'de> Deserialize<'de> for NetworkCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AddDataCollector> for NetworkCommand
impl From<AddDataCollector> for NetworkCommand
Source§fn from(v: AddDataCollector) -> Self
fn from(v: AddDataCollector) -> Self
Converts to this type from the input type.
Source§impl From<AddIntercept> for NetworkCommand
impl From<AddIntercept> for NetworkCommand
Source§fn from(v: AddIntercept) -> Self
fn from(v: AddIntercept) -> Self
Converts to this type from the input type.
Source§impl From<ContinueRequest> for NetworkCommand
impl From<ContinueRequest> for NetworkCommand
Source§fn from(v: ContinueRequest) -> Self
fn from(v: ContinueRequest) -> Self
Converts to this type from the input type.
Source§impl From<ContinueResponse> for NetworkCommand
impl From<ContinueResponse> for NetworkCommand
Source§fn from(v: ContinueResponse) -> Self
fn from(v: ContinueResponse) -> Self
Converts to this type from the input type.
Source§impl From<ContinueWithAuth> for NetworkCommand
impl From<ContinueWithAuth> for NetworkCommand
Source§fn from(v: ContinueWithAuth) -> Self
fn from(v: ContinueWithAuth) -> Self
Converts to this type from the input type.
Source§impl From<DisownData> for NetworkCommand
impl From<DisownData> for NetworkCommand
Source§fn from(v: DisownData) -> Self
fn from(v: DisownData) -> Self
Converts to this type from the input type.
Source§impl From<FailRequest> for NetworkCommand
impl From<FailRequest> for NetworkCommand
Source§fn from(v: FailRequest) -> Self
fn from(v: FailRequest) -> Self
Converts to this type from the input type.
Source§impl From<GetData> for NetworkCommand
impl From<GetData> for NetworkCommand
Source§impl From<NetworkCommand> for Command
impl From<NetworkCommand> for Command
Source§fn from(v: NetworkCommand) -> Self
fn from(v: NetworkCommand) -> Self
Converts to this type from the input type.
Source§impl From<ProvideResponse> for NetworkCommand
impl From<ProvideResponse> for NetworkCommand
Source§fn from(v: ProvideResponse) -> Self
fn from(v: ProvideResponse) -> Self
Converts to this type from the input type.
Source§impl From<RemoveDataCollector> for NetworkCommand
impl From<RemoveDataCollector> for NetworkCommand
Source§fn from(v: RemoveDataCollector) -> Self
fn from(v: RemoveDataCollector) -> Self
Converts to this type from the input type.
Source§impl From<RemoveIntercept> for NetworkCommand
impl From<RemoveIntercept> for NetworkCommand
Source§fn from(v: RemoveIntercept) -> Self
fn from(v: RemoveIntercept) -> Self
Converts to this type from the input type.
Source§impl From<SetCacheBehavior> for NetworkCommand
impl From<SetCacheBehavior> for NetworkCommand
Source§fn from(v: SetCacheBehavior) -> Self
fn from(v: SetCacheBehavior) -> Self
Converts to this type from the input type.
Source§impl From<SetExtraHeaders> for NetworkCommand
impl From<SetExtraHeaders> for NetworkCommand
Source§fn from(v: SetExtraHeaders) -> Self
fn from(v: SetExtraHeaders) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NetworkCommand
impl PartialEq for NetworkCommand
Source§impl Serialize for NetworkCommand
impl Serialize for NetworkCommand
Source§impl TryFrom<Command> for NetworkCommand
impl TryFrom<Command> for NetworkCommand
Source§impl TryFrom<NetworkCommand> for AddDataCollector
impl TryFrom<NetworkCommand> for AddDataCollector
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <AddDataCollector as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <AddDataCollector as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for AddIntercept
impl TryFrom<NetworkCommand> for AddIntercept
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <AddIntercept as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <AddIntercept as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for ContinueRequest
impl TryFrom<NetworkCommand> for ContinueRequest
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <ContinueRequest as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <ContinueRequest as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for ContinueResponse
impl TryFrom<NetworkCommand> for ContinueResponse
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <ContinueResponse as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <ContinueResponse as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for ContinueWithAuth
impl TryFrom<NetworkCommand> for ContinueWithAuth
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <ContinueWithAuth as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <ContinueWithAuth as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for DisownData
impl TryFrom<NetworkCommand> for DisownData
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <DisownData as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <DisownData as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for FailRequest
impl TryFrom<NetworkCommand> for FailRequest
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <FailRequest as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <FailRequest as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for GetData
impl TryFrom<NetworkCommand> for GetData
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <GetData as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <GetData as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for ProvideResponse
impl TryFrom<NetworkCommand> for ProvideResponse
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <ProvideResponse as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <ProvideResponse as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for RemoveDataCollector
impl TryFrom<NetworkCommand> for RemoveDataCollector
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <RemoveDataCollector as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <RemoveDataCollector as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for RemoveIntercept
impl TryFrom<NetworkCommand> for RemoveIntercept
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <RemoveIntercept as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <RemoveIntercept as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for SetCacheBehavior
impl TryFrom<NetworkCommand> for SetCacheBehavior
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <SetCacheBehavior as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <SetCacheBehavior as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<NetworkCommand> for SetExtraHeaders
impl TryFrom<NetworkCommand> for SetExtraHeaders
Source§type Error = NetworkCommand
type Error = NetworkCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommand,
) -> Result<Self, <SetExtraHeaders as TryFrom<NetworkCommand>>::Error>
fn try_from( e: NetworkCommand, ) -> Result<Self, <SetExtraHeaders as TryFrom<NetworkCommand>>::Error>
Performs the conversion.
impl StructuralPartialEq for NetworkCommand
Auto Trait Implementations§
impl Freeze for NetworkCommand
impl RefUnwindSafe for NetworkCommand
impl Send for NetworkCommand
impl Sync for NetworkCommand
impl Unpin for NetworkCommand
impl UnsafeUnpin for NetworkCommand
impl UnwindSafe for NetworkCommand
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> 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