Struct silx_core::channels::ArchQuerySender
source · pub struct ArchQuerySender<U, V>{ /* private fields */ }Expand description
Query sender for archived data
U: type of the query data; needs to implementSlxDataV: type of the reply data; needs to implementSlxData
Implementations§
source§impl<U, V> ArchQuerySender<U, V>
impl<U, V> ArchQuerySender<U, V>
sourcepub fn try_send(
&self,
(query, oneshot): (ArchData<U>, ArchOneshotSender<V>)
) -> Result<(), TrySendError<(ArchData<U>, ArchOneshotSender<V>)>>
pub fn try_send( &self, (query, oneshot): (ArchData<U>, ArchOneshotSender<V>) ) -> Result<(), TrySendError<(ArchData<U>, ArchOneshotSender<V>)>>
Try to send query of archived data without awaiting
(query,oneshot,) : (ArchData<U>, ArchOneshotSender<V>,): archived input and reply channel- Output: nothing or or a sending diagnosis
sourcepub async fn send(
&self,
__arg1: (ArchData<U>, ArchOneshotSender<V>)
) -> Result<(), SendError<(ArchData<U>, ArchOneshotSender<V>)>>
pub async fn send( &self, __arg1: (ArchData<U>, ArchOneshotSender<V>) ) -> Result<(), SendError<(ArchData<U>, ArchOneshotSender<V>)>>
Send query of archived data
(query,oneshot,) : (ArchData<U>, ArchOneshotSender<V>,): archived input and reply channel- Output: nothing or an error
sourcepub fn close(&self) -> bool
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
sourcepub fn capacity(&self) -> Option<usize>
pub fn capacity(&self) -> Option<usize>
Capacity of the channel
- Output: the capacity if defined; otherwise the channel is unsized
sourcepub fn receiver_count(&self) -> usize
pub fn receiver_count(&self) -> usize
Count the receivers
- Output: number of receivers
sourcepub fn sender_count(&self) -> usize
pub fn sender_count(&self) -> usize
Count the senders
- Output: number of senders
Trait Implementations§
Auto Trait Implementations§
impl<U, V> RefUnwindSafe for ArchQuerySender<U, V>where
U: RefUnwindSafe,
V: RefUnwindSafe,
impl<U, V> Send for ArchQuerySender<U, V>
impl<U, V> Sync for ArchQuerySender<U, V>
impl<U, V> Unpin for ArchQuerySender<U, V>
impl<U, V> UnwindSafe for ArchQuerySender<U, V>where
U: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§impl<T> HashedTypeUuid for T
impl<T> HashedTypeUuid for T
§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
return native type hash
§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash
§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash
§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string
§fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return native type hash from instance
§fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash from instance
§fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash from instance
§fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
return type hash-derived uuid from instance
§fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string from instance