Struct ArchQueryReceiver

Source
pub struct ArchQueryReceiver<U, V>
where U: SlxData, V: SlxData,
{ /* private fields */ }
Expand description

Query receiver for archived data

  • U : type of the query data; needs to implement SlxData
  • V : type of the reply data; needs to implement SlxData

Implementations§

Source§

impl<U, V> ArchQueryReceiver<U, V>
where U: SlxData, V: SlxData,

Source

pub fn try_recv( &self, ) -> Result<(ArchData<U>, ArchOneshotSender<V>), TryRecvError>

Try to receive query of archived data without awaiting

  • Output: the input archived data and the reply channel, or a reception diagnosis
Source

pub async fn recv( &self, ) -> Result<(ArchData<U>, ArchOneshotSender<V>), RecvError>

Receive query of archived data

  • Output: the input archived data and the reply channel, or an error
Source

pub fn close(&self) -> bool

Close the channel: returns true if this call has closed the channel and it was not closed already

  • Output: a boolean
Source

pub fn is_closed(&self) -> bool

Is the channel closed?

  • Output: a boolean
Source

pub fn is_empty(&self) -> bool

Is the channel empty?

  • Output: a boolean
Source

pub fn is_full(&self) -> bool

Is the channel full?

  • Output: a boolean
Source

pub fn len(&self) -> usize

Number of messages in the channel

  • Output: the number of messages
Source

pub fn capacity(&self) -> Option<usize>

Capacity of the channel

  • Output: the capacity if defined; otherwise the channel is unsized
Source

pub fn receiver_count(&self) -> usize

Count the receivers

  • Output: number of receivers
Source

pub fn sender_count(&self) -> usize

Count the senders

  • Output: number of senders

Trait Implementations§

Source§

impl<U, V> Clone for ArchQueryReceiver<U, V>
where U: SlxData, V: SlxData,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<U, V> Freeze for ArchQueryReceiver<U, V>

§

impl<U, V> RefUnwindSafe for ArchQueryReceiver<U, V>

§

impl<U, V> Send for ArchQueryReceiver<U, V>
where U: Send, V: Send,

§

impl<U, V> Sync for ArchQueryReceiver<U, V>
where U: Sync, V: Sync,

§

impl<U, V> !Unpin for ArchQueryReceiver<U, V>

§

impl<U, V> UnwindSafe for ArchQueryReceiver<U, V>
where U: UnwindSafe, V: UnwindSafe,

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> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
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<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<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, O> FromSlx<T> for O
where T: SlxInto<O>,

Source§

fn from_slx(slx: T) -> O

Convert slx data into original data Read more
Source§

impl<T> HashedTypeMethods for T

Source§

fn type_hash_native<REF>() -> u128
where Self: HashedTypeDef<REF>,

return native type hash
Source§

fn type_hash_le<REF>() -> u128
where Self: HashedTypeDef<REF>,

return little endianess type hash
Source§

fn type_hash_be<REF>() -> u128
where Self: HashedTypeDef<REF>,

return big endianess type hash
Source§

fn type_uuid<REF>() -> Uuid
where Self: HashedTypeDef<REF>,

return uuid derived from type hash
Source§

fn type_uuid_hyphenated<REF>() -> String
where Self: HashedTypeDef<REF>,

return uuid hyphenated string
Source§

fn self_type_hash_native<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

return native type hash from instance
Source§

fn self_type_hash_le<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

return little endianess type hash from instance
Source§

fn self_type_hash_be<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

return big endianess type hash from instance
Source§

fn self_type_uuid<REF>(&self) -> Uuid
where Self: HashedTypeDef<REF>,

return type hash-derived uuid from instance
Source§

fn self_type_uuid_hyphenated<REF>(&self) -> String
where Self: HashedTypeDef<REF>,

return uuid hyphenated string from instance
Source§

impl<T> HashedTypeUuid for T

Source§

fn type_hash_native<REF>() -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return native type hash
Source§

fn type_hash_le<REF>() -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return little endianess type hash
Source§

fn type_hash_be<REF>() -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return big endianess type hash
Source§

fn type_uuid<REF>() -> Uuid
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return uuid derived from type hash
Source§

fn type_uuid_hyphenated<REF>() -> String
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return uuid hyphenated string
Source§

fn self_type_hash_native<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return native type hash from instance
Source§

fn self_type_hash_le<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return little endianess type hash from instance
Source§

fn self_type_hash_be<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return big endianess type hash from instance
Source§

fn self_type_uuid<REF>(&self) -> Uuid
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return type hash-derived uuid from instance
Source§

fn self_type_uuid_hyphenated<REF>(&self) -> String
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return uuid hyphenated string from instance
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, O> IntoSlx<T> for O
where T: SlxFrom<O>,

Source§

fn slx(self) -> T

Convert original data into slx data Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
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.