Skip to main content

InvokeResp

Struct InvokeResp 

Source
pub struct InvokeResp<'a> {
    pub suppress_response: Option<bool>,
    pub invoke_responses: Option<TLVContainer<'a, CmdResp<'a>, ArrayContainer>>,
    pub more_chunks: Option<bool>,
    pub interaction_model_revision: Option<u8>,
}
Expand description

A response to an invoke request in the Interaction Model.

Corresponds to the InvokeResponseMessage TLV structure in the Interaction Model. Used by clients to parse invoke responses from devices.

Fields§

§suppress_response: Option<bool>

Whether the response should be suppressed (echo from request)

§invoke_responses: Option<TLVContainer<'a, CmdResp<'a>, ArrayContainer>>

The list of invoke responses

§more_chunks: Option<bool>

Whether there are more chunked messages coming

§interaction_model_revision: Option<u8>

interactionModelRevision (TLV context tag 0xFF). Mandatory in every IM message we send; modelled as Option<u8> so we tolerate peers that omit it (the C++ SDK is tolerant in practice).

Implementations§

Source§

impl<'a> InvokeResp<'a>

Source

pub fn responses<R>( &self, cluster: u32, cmd: u32, ) -> impl Iterator<Item = (u16, Result<R, Error>)> + use<'_, 'a, R>
where R: FromTLV<'a> + 'a,

Iterate the entries in invoke_responses whose path matches the given (cluster, cmd) pair, in (endpoint, result) form.

  • Ok(R)CmdResp::Cmd entry; the embedded data is decoded via FromTLV into R.
  • Err(_)CmdResp::Status entry; the IMStatusCode is converted to an Error. This covers access-check failures (UnsupportedAccess etc.) and all Unsupported* cases (UnsupportedEndpoint, UnsupportedCluster, UnsupportedCommand) uniformly — the peer echoes the requested path on status, so the filter still catches them.
  • Entries with a non-matching cluster/cmd are silently filtered out (they belong to a different .responses(...) call).
  • Entries with an absent endpoint in the path are skipped (the wire spec requires concrete paths on invoke responses; a missing endpoint indicates a malformed response).

R = () for DefaultSuccess commands. Codegen-emitted response structs (e.g. MoveToLevelResponse<'a>) implement FromTLV over 'a and plug in directly.

Multi-response: single-command invokes per Matter Core spec carry concrete paths only, but batched invokes (multiple CommandDataIBs in one InvokeRequestMessage) can produce multiple matching entries — the iterator yields one per match, in wire order.

Source

pub fn statuses( &self, cluster: u32, cmd: u32, ) -> impl Iterator<Item = (u16, Result<(), Error>)>

Counterpart of Self::responses for DefaultSuccess commands — the ones whose IDL output is DefaultSuccess and thus carry no per-command response payload. Filters the invoke_responses list by (cluster, cmd) and yields (endpoint, Result<(), Error>):

  • Ok(()) — a CmdResp::Status(Success) entry for the given path (this is what a batched DefaultSuccess command produces on the wire).
  • Err(_) — a non-Success CmdResp::Status, with the same IMStatusCode-to-Error mapping as Self::responses.
  • CmdResp::Cmd entries (which would indicate the peer replied with payload data for a command we asked to be DefaultSuccess) are skipped silently.
  • Entries with non-matching cluster/cmd or absent endpoint are skipped as in Self::responses.

Note: a single-command DefaultSuccess invoke produces a top-level StatusResponse(Success) instead of an InvokeResponseMessage, so the response array is absent entirely and this iterator yields nothing — use crate::im::client::InvokeRespChunk::is_status_only to detect that case. The iterator here is only useful for batched invokes that mix DefaultSuccess and response-bearing commands.

Trait Implementations§

Source§

impl<'a> AccessControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> AccountLoginCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ActionsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ActivatedCarbonFilterMonitoringCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> AdministratorCommissioningCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> AirQualityCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> AmbientContextSensingCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> AmbientSensingUnionCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ApplicationBasicCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ApplicationLauncherCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> AudioOutputCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> AvAnalysisCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> BallastConfigurationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> BasicInformationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> BindingCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> BooleanStateCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> BooleanStateConfigurationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> BridgedDeviceBasicInformationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> CameraAvSettingsUserLevelManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> CameraAvStreamManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> CarbonDioxideConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> CarbonMonoxideConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ChannelCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ChimeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> Clone for InvokeResp<'a>

Source§

fn clone(&self) -> InvokeResp<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> ClosureControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ClosureDimensionCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ColorControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> CommissionerControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> CommodityMeteringCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> CommodityPriceCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> CommodityTariffCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ContentAppObserverCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ContentControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ContentLauncherCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> Debug for InvokeResp<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a> DescriptorCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> DeviceEnergyManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> DeviceEnergyManagementModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> DiagnosticLogsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> DishwasherAlarmCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> DishwasherModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> DoorLockCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> DynamicLightingCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> EcosystemInformationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ElectricalAlarmCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ElectricalDistributionCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ElectricalEnergyMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ElectricalGridConditionsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ElectricalPowerMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ElectricalProtectionAlarmCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> EnergyEvseCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> EnergyEvseModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> EnergyPreferenceCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> EthernetNetworkDiagnosticsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> FanControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> FaultInjectionCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> FixedLabelCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> FlowMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> FormaldehydeConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> FromTLV<'a> for InvokeResp<'a>

Source§

fn from_tlv(element: &TLVElement<'a>) -> Result<InvokeResp<'a>, Error>

Deserialize the type from a TLV-encoded element.
Source§

fn init_from_tlv(element: TLVElement<'a>) -> impl Init<InvokeResp<'a>, Error>

Generate an in-place initializer for the type that initializes the type from a TLV-encoded element.
Source§

fn nullable_from_tlv(element: &TLVElement<'a>) -> Result<Self, Error>

Deserialize the type from a TLV-encoded element. Read more
Source§

fn init_nullable_from_tlv(element: TLVElement<'a>) -> impl Init<Self, Error>

Generate an in-place initializer for the type that initializes the type from a TLV-encoded element. Read more
Source§

impl<'a> GeneralCommissioningCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> GeneralDiagnosticsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> GroupKeyManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> GroupcastCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> GroupsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> HepaFilterMonitoringCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> HumidistatCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> IcdManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> IdentifyCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> IlluminanceMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> JointFabricAdministratorCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> JointFabricDatastoreCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> KeypadInputCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> LaundryDryerControlsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> LaundryWasherControlsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> LaundryWasherModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> LevelControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> LocalizationConfigurationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> LowPowerCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> MediaInputCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> MediaPlaybackCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> MessagesCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> MeterIdentificationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> MicrowaveOvenControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> MicrowaveOvenModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ModeSelectCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> NetworkCommissioningCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> NetworkIdentityManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> NitrogenDioxideConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> OccupancySensingCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> OnOffCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> OperationalCredentialsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> OperationalStateCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> OtaSoftwareUpdateProviderCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> OtaSoftwareUpdateRequestorCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> OvenCavityOperationalStateCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> OvenModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> OzoneConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> Pm1ConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> Pm10ConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> Pm25ConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> PowerSourceCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> PowerSourceConfigurationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> PowerTopologyCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> PressureMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ProximityRangingCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ProxyConfigurationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ProxyDiscoveryCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ProxyValidCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> PulseWidthModulationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> PumpConfigurationAndControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> PushAvStreamTransportCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> RadonConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> RefrigeratorAlarmCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> RefrigeratorAndTemperatureControlledCabinetModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> RelativeHumidityMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> RvcCleanModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> RvcOperationalStateCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> RvcRunModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> SampleMeiCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ScenesManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ServiceAreaCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> SmokeCoAlarmCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> SmokeConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> SoftwareDiagnosticsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> SoilMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> SwitchCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> TargetNavigatorCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> TemperatureControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> TemperatureControlledCabinetTopologyCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> TemperatureMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ThermostatCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ThermostatUserInterfaceConfigurationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ThreadBorderRouterManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ThreadNetworkDiagnosticsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ThreadNetworkDirectoryCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> TimeFormatLocalizationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> TimeSynchronizationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> TlsCertificateManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> TlsClientManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ToTLV for InvokeResp<'a>

Source§

fn to_tlv<W>(&self, tag: &TLVTag, tw: W) -> Result<(), Error>
where W: TLVWrite,

Serialize the type to a TLV-encoded stream.
Source§

fn tlv_iter(&self, tag: TLVTag) -> impl Iterator<Item = Result<TLV<'_>, Error>>

Serialize the type as an iterator of TLV instances by potentially borrowing data from the type.
Source§

fn nullable_to_tlv<W>(&self, tag: &TLVTag, tw: W) -> Result<(), Error>
where W: TLVWrite,

Serialize the type to a TLV-encoded stream. Read more
Source§

fn nullable_tlv_iter( &self, tag: TLVTag, ) -> impl Iterator<Item = Result<TLV<'_>, Error>>

Serialize the type as an iterator of TLV instances by potentially borrowing data from the type. Read more
Source§

impl<'a> TotalVolatileOrganicCompoundsConcentrationMeasurementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> TryFrom<&TLVElement<'a>> for InvokeResp<'a>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from( element: &TLVElement<'a>, ) -> Result<InvokeResp<'a>, <InvokeResp<'a> as TryFrom<&TLVElement<'a>>>::Error>

Performs the conversion.
Source§

impl<'a> UnitLocalizationCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> UnitTestingCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> UserLabelCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ValveConfigurationAndControlCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> WakeOnLanCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> WaterHeaterManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> WaterHeaterModeCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> WaterTankLevelMonitoringCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> WebRtcTransportProviderCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> WebRtcTransportRequestorCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> WiFiNetworkDiagnosticsCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> WiFiNetworkManagementCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> WindowCoveringCmdResponses<'a> for InvokeResp<'a>

Source§

impl<'a> ZoneManagementCmdResponses<'a> for InvokeResp<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for InvokeResp<'a>

§

impl<'a> RefUnwindSafe for InvokeResp<'a>

§

impl<'a> Send for InvokeResp<'a>

§

impl<'a> Sync for InvokeResp<'a>

§

impl<'a> Unpin for InvokeResp<'a>

§

impl<'a> UnsafeUnpin for InvokeResp<'a>

§

impl<'a> UnwindSafe for InvokeResp<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, E> Init<T, E> for T

Source§

unsafe fn __init(self, slot: *mut T) -> Result<(), E>

Initializes slot. Read more
Source§

fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E>
where F: FnOnce(&mut T) -> Result<(), E>,

First initializes the value using self then calls the function f with the initialized value. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, I> IntoFallibleInit<T> for I
where I: Init<T>,

Source§

fn into_fallible<E>(self) -> impl Init<T, E>

Convert the infallible initializer to a fallible one.
Source§

impl<Source, Target> OctetsInto<Target> for Source
where Target: OctetsFrom<Source>,

Source§

type Error = <Target as OctetsFrom<Source>>::Error

Source§

fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>

Performs the conversion.
Source§

fn octets_into(self) -> Target
where Self::Error: Into<Infallible>,

Performs an infallible conversion.
Source§

impl<T, E> PinInit<T, E> for T

Source§

unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>

Initializes slot. Read more
Source§

fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>
where F: FnOnce(Pin<&mut T>) -> Result<(), E>,

First initializes the value using self then calls the function f with the initialized value. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V