Struct silx_core::channels::ChannelClient
source · pub struct ChannelClient { /* private fields */ }Expand description
Channel client
- channel lient will connect to channel server for query and broadcast transmissions between two machines
Implementations§
source§impl ChannelClient
impl ChannelClient
sourcepub async fn connect<A: ToSocketAddrs>(
id_client: SocketAddr,
addr: A
) -> Result<Self, String>
pub async fn connect<A: ToSocketAddrs>( id_client: SocketAddr, addr: A ) -> Result<Self, String>
Connect to a channel server and build a channel client
id_client: SocketAddr: socket address of the clientaddr: A: socket address of the channel serverA: ToSocketAddrs: type of the server socket address- Output: the channel client or an error
sourcepub async fn sender_query<U, V>(
&mut self,
channel: u64,
capacity: Option<usize>
) -> ArchQuerySender<U, V>
pub async fn sender_query<U, V>( &mut self, channel: u64, capacity: Option<usize> ) -> ArchQuerySender<U, V>
Register a query sender for archived data
channel: ChannelIdType: channel identifiercapacity: Option<usize>: size parameter for defining bounded or unbounnded channelsU: type of the query data; needs to implementSlxDataV: type of the reply data; needs to implementSlxData- Output: query sender for archived data
sourcepub async fn sender_broadcast<U>(
&mut self,
channel: u64,
capacity: usize
) -> RootArchBroadcastSender<U>where
U: SlxData,
pub async fn sender_broadcast<U>(
&mut self,
channel: u64,
capacity: usize
) -> RootArchBroadcastSender<U>where
U: SlxData,
Register a broadcast sender for archived data
channel: ChannelIdType: channel identifiercapacity: usize: capacity of the channelU: type of the data; needs to implementSlxData- Output: broadcast sender for archived data
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ChannelClient
impl Send for ChannelClient
impl Sync for ChannelClient
impl Unpin for ChannelClient
impl !UnwindSafe for ChannelClient
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