pub struct Conn { /* private fields */ }Expand description
iSCP接続
Implementations§
Source§impl Conn
impl Conn
Sourcepub async fn send_reply_call(
&self,
call: UpstreamReplyCall,
) -> Result<String, Error>
pub async fn send_reply_call( &self, call: UpstreamReplyCall, ) -> Result<String, Error>
リプライコールを送信し、コールIDを返却
Sourcepub async fn send_call_and_wait_reply_call(
&self,
call: UpstreamCall,
) -> Result<DownstreamReplyCall, Error>
pub async fn send_call_and_wait_reply_call( &self, call: UpstreamCall, ) -> Result<DownstreamReplyCall, Error>
E2Eコールを送信し、それに対応するリプライコールを受信
このメソッドはリプライコールを受信できるまで処理をブロックします。
Sourcepub async fn recv_call(&self) -> Result<DownstreamCall, Error>
pub async fn recv_call(&self) -> Result<DownstreamCall, Error>
リプライコールでないコールを受信
Sourcepub async fn recv_reply_call(&self) -> Result<DownstreamReplyCall, Error>
pub async fn recv_reply_call(&self) -> Result<DownstreamReplyCall, Error>
リプライコールを受信
Source§impl Conn
impl Conn
Sourcepub fn metadata_sender<T: Into<SendableMetadata>>(
&self,
metadata: T,
) -> MetadataSender<'_>
pub fn metadata_sender<T: Into<SendableMetadata>>( &self, metadata: T, ) -> MetadataSender<'_>
メタデータを送信
Source§impl Conn
impl Conn
pub async fn open_upstream_with_config<T: Into<Arc<UpstreamConfig>>>( &self, upstream_config: T, ) -> Result<Upstream, Error>
pub fn upstream_builder<S: ToString>(&self, session_id: S) -> UpstreamBuilder
pub async fn open_downstream_with_config<T: Into<Arc<DownstreamConfig>>>( &self, downstream_config: T, ) -> Result<(Downstream, DownstreamMetadataReader), Error>
pub fn downstream_builder( &self, filters: Vec<DownstreamFilter>, ) -> DownstreamBuilder
pub async fn close(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Conn
impl !UnwindSafe for Conn
impl Freeze for Conn
impl Send for Conn
impl Sync for Conn
impl Unpin for Conn
impl UnsafeUnpin for Conn
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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