pub enum BroadcastResolution {
Endpoints(Vec<Endpoint>),
Delegate(Endpoint),
Unsupported,
}Expand description
The platform’s answer to “which endpoints are currently members of this BroadcastGroup?”,
returned by CommunicationBackend::resolve.
Variants§
Endpoints(Vec<Endpoint>)
Deliver the message to each of these endpoints. An empty list is a valid answer: the group currently has no members, so nothing is sent.
Delegate(Endpoint)
Hand the message to this endpoint, which takes care of delivering it to the group.
Reserved for hop-to-hop delivery. The IPC client does not support it yet and rejects the send without delivering anything.
Unsupported
The platform cannot resolve this group. The IPC client rejects the broadcast without delivering anything.
Trait Implementations§
Source§impl Clone for BroadcastResolution
impl Clone for BroadcastResolution
Source§fn clone(&self) -> BroadcastResolution
fn clone(&self) -> BroadcastResolution
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 BroadcastResolution
impl Debug for BroadcastResolution
Source§impl<'de> Deserialize<'de> for BroadcastResolution
impl<'de> Deserialize<'de> for BroadcastResolution
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
impl Eq for BroadcastResolution
Source§impl From<BroadcastResolution> for JsValuewhere
BroadcastResolution: Serialize,
impl From<BroadcastResolution> for JsValuewhere
BroadcastResolution: Serialize,
Source§fn from(value: BroadcastResolution) -> Self
fn from(value: BroadcastResolution) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BroadcastResolutionwhere
Self: DeserializeOwned,
impl FromWasmAbi for BroadcastResolutionwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &BroadcastResolutionwhere
BroadcastResolution: Serialize,
impl IntoWasmAbi for &BroadcastResolutionwhere
BroadcastResolution: Serialize,
Source§impl IntoWasmAbi for BroadcastResolutionwhere
BroadcastResolution: Serialize,
impl IntoWasmAbi for BroadcastResolutionwhere
BroadcastResolution: Serialize,
Source§impl OptionFromWasmAbi for BroadcastResolutionwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for BroadcastResolutionwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for BroadcastResolutionwhere
BroadcastResolution: Serialize,
impl OptionIntoWasmAbi for BroadcastResolutionwhere
BroadcastResolution: Serialize,
Source§impl PartialEq for BroadcastResolution
impl PartialEq for BroadcastResolution
Source§impl RefFromWasmAbi for BroadcastResolutionwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for BroadcastResolutionwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<BroadcastResolution>
type Anchor = SelfOwner<BroadcastResolution>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for BroadcastResolution
impl Serialize for BroadcastResolution
impl StructuralPartialEq for BroadcastResolution
Source§impl Tsify for BroadcastResolution
impl Tsify for BroadcastResolution
const DECL: &'static str = "/**\n * The platform\\\'s answer to \\\"which endpoints are currently members of this [`BroadcastGroup`]?\\\",\n * returned by [`CommunicationBackend::resolve`].\n */\nexport type BroadcastResolution = { Endpoints: Endpoint[] } | { Delegate: Endpoint } | \"Unsupported\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for BroadcastResolutionwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for BroadcastResolutionwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for BroadcastResolutionwhere
BroadcastResolution: Serialize,
impl VectorIntoWasmAbi for BroadcastResolutionwhere
BroadcastResolution: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for BroadcastResolution
impl WasmDescribe for BroadcastResolution
Auto Trait Implementations§
impl Freeze for BroadcastResolution
impl RefUnwindSafe for BroadcastResolution
impl Send for BroadcastResolution
impl Sync for BroadcastResolution
impl Unpin for BroadcastResolution
impl UnsafeUnpin for BroadcastResolution
impl UnwindSafe for BroadcastResolution
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.