pub struct Upstream { /* private fields */ }Expand description
iSCPのアップストリーム
Implementations§
Source§impl Upstream
impl Upstream
Sourcepub async fn write_data_points<T: IntoIterator<Item = DataPoint>>(
&mut self,
data_id: DataId,
dps: T,
) -> Result<(), Error>
pub async fn write_data_points<T: IntoIterator<Item = DataPoint>>( &mut self, data_id: DataId, dps: T, ) -> Result<(), Error>
データポイントを書き込む
Sourcepub async fn close<T: Into<Option<UpstreamCloseOptions>>>(
&mut self,
opts: T,
) -> Result<(), Error>
pub async fn close<T: Into<Option<UpstreamCloseOptions>>>( &mut self, opts: T, ) -> Result<(), Error>
このアップストリームを閉じる
Sourcepub fn config(&self) -> Arc<UpstreamConfig> ⓘ
pub fn config(&self) -> Arc<UpstreamConfig> ⓘ
アップストリームの設定を取得
Sourcepub fn state(&self) -> UpstreamState
pub fn state(&self) -> UpstreamState
アップストリームの状態を取得
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
アップストリームが接続されているか取得
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Upstream
impl !UnwindSafe for Upstream
impl Freeze for Upstream
impl Send for Upstream
impl Sync for Upstream
impl Unpin for Upstream
impl UnsafeUnpin for Upstream
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