Struct fire_stream_api::client::Client
source · pub struct Client<A, B> { /* private fields */ }Implementations§
source§impl<A> Client<A, PlainBytes>where
A: Action + Send + 'static,
impl<A> Client<A, PlainBytes>where A: Action + Send + 'static,
pub fn new<S>( stream: S, cfg: Config, recon_strat: Option<ReconStrat<S>> ) -> Selfwhere S: ByteStream,
source§impl<A> Client<A, EncryptedBytes>where
A: Action + Send + 'static,
impl<A> Client<A, EncryptedBytes>where A: Action + Send + 'static,
pub fn new_encrypted<S>( stream: S, cfg: Config, recon_strat: Option<ReconStrat<S>>, pub_key: PublicKey ) -> Selfwhere S: ByteStream,
Available on crate feature
encrypted only.source§impl<A, B> Client<A, B>where
A: Action,
B: PacketBytes,
impl<A, B> Client<A, B>where A: Action, B: PacketBytes,
pub async fn request<R>(&self, req: R) -> Result<R::Response, R::Error>where R: Request<Action = A> + IntoMessage<A, B>, R::Response: FromMessage<A, B>, R::Error: FromMessage<A, B>,
Auto Trait Implementations§
impl<A, B> !RefUnwindSafe for Client<A, B>
impl<A, B> Send for Client<A, B>where A: Send, B: Send,
impl<A, B> Sync for Client<A, B>where A: Send, B: Send,
impl<A, B> Unpin for Client<A, B>
impl<A, B> !UnwindSafe for Client<A, B>
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